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