Remove check for open windows

We now live in a single-window world.

// FREEBIE
This commit is contained in:
lilia 2017-04-12 20:04:32 -07:00 committed by Scott Nonnenberg
parent e4e41140c4
commit 6574958087
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -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);