diff --git a/js/background.js b/js/background.js index 6b28d33e41..6ccdb85cff 100644 --- a/js/background.js +++ b/js/background.js @@ -29,14 +29,18 @@ }); chrome.alarms.create('awake', {periodInMinutes: 1}); } + + // Close and reopen existing windows var open = false; chrome.app.window.getAll().forEach(function(appWindow) { open = true; appWindow.close(); }); + // start a background worker for ecc textsecure.protocol_wrapper.startWorker(); + // load the initial set of conversations into memory ConversationController.updateInbox(); extension.onLaunched(function() {