mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
fixed module.js callback format
This commit is contained in:
@@ -51,13 +51,15 @@ define(function() {
|
||||
notifIcon.toggleClass('active', false);
|
||||
}
|
||||
|
||||
socket.emit('modules.notifications.mark_all_read', null, function() {
|
||||
notifIcon.toggleClass('active', false);
|
||||
app.refreshTitle();
|
||||
socket.emit('modules.notifications.mark_all_read', null, function(err) {
|
||||
if (!err) {
|
||||
notifIcon.toggleClass('active', false);
|
||||
app.refreshTitle();
|
||||
|
||||
// Update favicon + local count
|
||||
Tinycon.setBubble(0);
|
||||
localStorage.setItem('notifications:count', 0);
|
||||
// Update favicon + local count
|
||||
Tinycon.setBubble(0);
|
||||
localStorage.setItem('notifications:count', 0);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user