fix: #9872 update app badge with notification count if applicable

This commit is contained in:
Julian Lam
2021-10-08 11:32:47 -04:00
parent c1149d045c
commit 3e69bcdf1f

View File

@@ -139,6 +139,10 @@ define('notifications', [
if (payload.updateFavicon) { if (payload.updateFavicon) {
Tinycon.setBubble(count > 99 ? '99+' : count); Tinycon.setBubble(count > 99 ? '99+' : count);
} }
if (navigator.setAppBadge) { // feature detection
navigator.setAppBadge(count);
}
}; };
Notifications.markAllRead = function () { Notifications.markAllRead = function () {