Get rid of Layout global
Instead, trigger and listen for events on the conversation collection object.
This commit is contained in:
parent
a835887459
commit
d1c5b6da7a
4 changed files with 9 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
|||
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
||||
window.location = '/options.html';
|
||||
} else {
|
||||
Whisper.Layout = new Whisper.InboxView({el: document});
|
||||
new Whisper.InboxView({el: document});
|
||||
textsecure.storage.putUnencrypted("unreadCount", 0);
|
||||
extension.navigator.setBadgeText("");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue