Fix setUnreadCount
This commit is contained in:
parent
75dbc27cfa
commit
3f5505907f
1 changed files with 2 additions and 6 deletions
|
@ -61,14 +61,10 @@
|
|||
window.setUnreadCount = function(count) {
|
||||
if (count > 0) {
|
||||
extension.navigator.setBadgeText(count);
|
||||
if (inboxOpened === true && appWindow) {
|
||||
appWindow.contentWindow.document.title = "Signal (" + count + ")";
|
||||
}
|
||||
window.document.title = "Signal (" + count + ")";
|
||||
} else {
|
||||
extension.navigator.setBadgeText("");
|
||||
if (inboxOpened === true && appWindow) {
|
||||
appWindow.contentWindow.document.title = "Signal";
|
||||
}
|
||||
window.document.title = "Signal";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue