From 2bdd0106e70845f21369abefc7a4b9fb02f72b9c Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 25 Sep 2015 11:10:25 -0700 Subject: [PATCH] Add comments // FREEBIE --- js/background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/background.js b/js/background.js index 6b28d33e41c..6ccdb85cff9 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() {