mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
simple toaster popup on new notification
This commit is contained in:
@@ -140,6 +140,12 @@
|
||||
});
|
||||
socket.on('event:new_notification', function() {
|
||||
document.querySelector('.notifications a i').className = 'icon-circle active';
|
||||
app.alert({
|
||||
title: 'New notification',
|
||||
message: 'You have unread notifications.',
|
||||
type: 'notify',
|
||||
timeout: 2000
|
||||
});
|
||||
utils.refreshTitle();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user