Get rid of Layout global

Instead, trigger and listen for events on the conversation collection
object.
This commit is contained in:
lilia 2014-11-19 23:08:22 -08:00
parent a835887459
commit d1c5b6da7a
4 changed files with 9 additions and 5 deletions

View file

@ -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("");
}