Remove check for open windows

We now live in a single-window world.

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent e4e41140c4
commit 6574958087
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -12,13 +12,7 @@
console.log('NODE_ENV', window.env.NODE_ENV);
extension.notification.init();
// Close and reopen existing windows
var open = false;
var initialLoadComplete = false;
extension.windows.getAll().forEach(function(appWindow) {
open = true;
appWindow.close();
});
// start a background worker for ecc
textsecure.startWorker('js/libsignal-protocol-worker.js');
@ -73,12 +67,6 @@
var appView = window.owsDesktopApp.appView = new Whisper.AppView({el: $('body'), events: Whisper.events});
if (open) {
openInbox({
initialLoadComplete: initialLoadComplete
});
}
Whisper.WallClockListener.init(Whisper.events);
Whisper.RotateSignedPreKeyListener.init(Whisper.events);
Whisper.ExpiringMessagesListener.init(Whisper.events);

Loading…
Cancel
Save