Remove check for open windows
We now live in a single-window world. // FREEBIE
This commit is contained in:
parent
e4e41140c4
commit
6574958087
1 changed files with 0 additions and 12 deletions
|
@ -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…
Reference in a new issue