Skip to content

Node.js based forum software built for the modern web

firing client-side hook on notification count update now

Julian Lamf18382a89229
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.js
index d3579b60ae..e8649248e0 100644
--- a/public/src/modules/notifications.js
+++ b/public/src/modules/notifications.js
@@ -123,6 +123,9 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
notifIcon.attr('data-content', count > 20 ? '20+' : count);
Tinycon.setBubble(count);
+ $(window).trigger('action:notification.updateCount', {
+ count: count
+ });
};
Notifications.markAllRead = function() {