mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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