Derive global unread count from individual counts

// FREEBIE
This commit is contained in:
lilia 2016-02-19 17:19:04 -08:00
parent 781ada64ca
commit 1be45f3775
2 changed files with 10 additions and 7 deletions

View file

@ -80,12 +80,12 @@
window.setUnreadCount = function(count) {
if (count > 0) {
extension.navigator.setBadgeText(count);
if (inboxOpened === true) {
if (inboxOpened === true && appWindow) {
appWindow.contentWindow.document.title = "Signal (" + count + ")";
}
} else {
extension.navigator.setBadgeText("");
if (inboxOpened === true) {
if (inboxOpened === true && appWindow) {
appWindow.contentWindow.document.title = "Signal";
}
}