Always listen for (re-)registration events

If we clear local storage and re-register in a foreground page, the
background page needs to re-init its websocket with the new account
credentials.
This commit is contained in:
lilia
2015-01-07 19:09:07 -10:00
parent 9a30a1e175
commit 4e6faf4e27
+1 -2
View File
@@ -26,9 +26,8 @@
if (textsecure.registration.isDone()) {
init();
} else {
extension.on('registration_done', init);
}
extension.on('registration_done', init);
function init() {
if (!textsecure.registration.isDone()) { return; }