Wait for storage on launch
This commit is contained in:
parent
37086fde19
commit
0b31823989
1 changed files with 7 additions and 5 deletions
|
@ -141,11 +141,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
extension.onLaunched(function() {
|
extension.onLaunched(function() {
|
||||||
if (textsecure.registration.isDone()) {
|
storage.onready(function() {
|
||||||
openInbox();
|
if (textsecure.registration.isDone()) {
|
||||||
} else {
|
openInbox();
|
||||||
extension.install();
|
} else {
|
||||||
}
|
extension.install();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// make sure windows are cleaned up on close
|
// make sure windows are cleaned up on close
|
||||||
|
|
Loading…
Reference in a new issue