Add comments

// FREEBIE
This commit is contained in:
lilia 2015-09-25 11:10:25 -07:00
parent eb1cfe9b70
commit 2bdd0106e7

View file

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