Set badge count
This is displayed on the launcher icon on linux/mac // FREEBIE
This commit is contained in:
@@ -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";
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user