Wait for storage on launch

This commit is contained in:
lilia 2015-05-20 14:24:44 -07:00
parent 37086fde19
commit 0b31823989

View file

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