mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
fixed favicon sometimes updating with a string 0, should always be an int
This commit is contained in:
@@ -149,16 +149,13 @@
|
||||
notifIcon.toggleClass('active', false);
|
||||
}
|
||||
|
||||
// Update the saved local count
|
||||
localStorage.setItem('notifications:count', count);
|
||||
Tinycon.setBubble(localStorage.getItem('notifications:count'));
|
||||
|
||||
// Update favicon
|
||||
// Update the favicon + saved local count
|
||||
Tinycon.setBubble(count);
|
||||
localStorage.setItem('notifications:count', count);
|
||||
});
|
||||
|
||||
if (localStorage.getItem('notifications:count') !== null) {
|
||||
Tinycon.setBubble(localStorage.getItem('notifications:count'));
|
||||
Tinycon.setBubble(parseInt(localStorage.getItem('notifications:count'), 10));
|
||||
}
|
||||
|
||||
socket.on('event:new_notification', function() {
|
||||
|
||||
Reference in New Issue
Block a user