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) {
|
window.setUnreadCount = function(count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
extension.navigator.setBadgeText(count);
|
extension.navigator.setBadgeText(count);
|
||||||
if (inboxOpened === true && appWindow) {
|
window.document.title = "Signal (" + count + ")";
|
||||||
appWindow.contentWindow.document.title = "Signal (" + count + ")";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
extension.navigator.setBadgeText("");
|
extension.navigator.setBadgeText("");
|
||||||
if (inboxOpened === true && appWindow) {
|
window.document.title = "Signal";
|
||||||
appWindow.contentWindow.document.title = "Signal";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue