mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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) {
|
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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user