mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #9872 update app badge with notification count if applicable
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user