diff --git a/js/panel_controller.js b/js/panel_controller.js index 1468308b306..95582fa9735 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -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