Set badge count
This is displayed on the launcher icon on linux/mac // FREEBIE
This commit is contained in:
parent
d025b57656
commit
ea930d53ae
3 changed files with 9 additions and 2 deletions
|
@ -41,10 +41,10 @@
|
|||
|
||||
window.setUnreadCount = function(count) {
|
||||
if (count > 0) {
|
||||
extension.navigator.setBadgeText(count);
|
||||
window.setBadgeCount(count);
|
||||
window.document.title = "Signal (" + count + ")";
|
||||
} else {
|
||||
extension.navigator.setBadgeText("");
|
||||
window.setBadgeCount(0);
|
||||
window.document.title = "Signal";
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue