Set badge count

This is displayed on the launcher icon on linux/mac

// FREEBIE
This commit is contained in:
lilia 2017-04-24 17:00:17 -07:00 committed by Scott Nonnenberg
parent d025b57656
commit ea930d53ae
No known key found for this signature in database
GPG key ID: A4931C09644C654B
3 changed files with 9 additions and 2 deletions

View file

@ -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";
}
};