Derive global unread count from individual counts
// FREEBIE
This commit is contained in:
parent
781ada64ca
commit
1be45f3775
2 changed files with 10 additions and 7 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue