// FREEBIE
@ -62,7 +62,13 @@
);
storage.put("unreadCount", newUnreadCount);
setUnreadCount(newUnreadCount);
if (newUnreadCount > 0) {
window.setBadgeCount(newUnreadCount);
window.document.title = "Signal (" + newUnreadCount + ")";
} else {
window.setBadgeCount(0);
window.document.title = "Signal";
}
if (newUnreadCount === 0) {
window.clearAttention();
@ -25,14 +25,4 @@
};
var inboxWindowId = 'inbox';
window.setUnreadCount = function(count) {
if (count > 0) {
window.setBadgeCount(count);
window.document.title = "Signal (" + count + ")";
})();