mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: change notification updateCount to use client-side hooks
This commit is contained in:
@@ -134,7 +134,7 @@ define('notifications', [
|
||||
count: count,
|
||||
updateFavicon: true,
|
||||
};
|
||||
$(window).trigger('action:notification.updateCount', payload);
|
||||
hooks.fire('action:notification.updateCount', payload);
|
||||
|
||||
if (payload.updateFavicon) {
|
||||
Tinycon.setBubble(count > 99 ? '99+' : count);
|
||||
|
||||
Reference in New Issue
Block a user