Wait for storage on launch

pull/749/head
lilia 10 years ago
parent 37086fde19
commit 0b31823989

@ -141,12 +141,14 @@
};
extension.onLaunched(function() {
storage.onready(function() {
if (textsecure.registration.isDone()) {
openInbox();
} else {
extension.install();
}
});
});
// make sure windows are cleaned up on close
extension.windows.onClosed(function (windowId) {

Loading…
Cancel
Save