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

isekai-main
Julian Lam 3 years ago
parent c1149d045c
commit 3e69bcdf1f

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

Loading…
Cancel
Save