mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
added sounds for incoming and outgoing chat, and new notification
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(function() {
|
||||
define(['sound'], function(sound) {
|
||||
var Notifications = {};
|
||||
|
||||
Notifications.prepareDOM = function() {
|
||||
@@ -108,6 +108,8 @@ define(function() {
|
||||
|
||||
var savedCount = parseInt(localStorage.getItem('notifications:count'), 10) || 0;
|
||||
updateNotifCount(savedCount + 1);
|
||||
|
||||
sound.play('notification');
|
||||
});
|
||||
socket.on('event:notifications.updateCount', function(count) {
|
||||
updateNotifCount(count);
|
||||
|
||||
Reference in New Issue
Block a user