@ -20,11 +20,6 @@
storage.onready(function() {
var messageReceiver;
if (!storage.get('first_install_ran')) {
storage.put('first_install_ran', 1);
extension.install();
}
if (textsecure.registration.isDone()) {
init();
@ -139,7 +139,14 @@
});
};
extension.onLaunched(openInbox);
extension.onLaunched(function() {
openInbox();
} else {
// make sure windows are cleaned up on close
extension.windows.onClosed(function (windowId) {