fix: view.main (added remote notification sound)
This commit is contained in:
parent
c107e6c38b
commit
7092a5f9c8
|
@ -114,7 +114,7 @@ window.wsc_chat = wsc.channel('chat').listen(function(msg, err){
|
|||
// {4} Play sound if 1msg received + not already on page //
|
||||
// note: 1msg means a new message but not the page load past buffer
|
||||
if( msg.msg.length == 1 && router.app.$route.path != '/inbox' )
|
||||
( new Audio('/sound/notification.mp3') ).play();
|
||||
( new Audio('https://notificationsounds.com/message-tones/communication-channel-519/download/mp3') ).play();
|
||||
|
||||
// {5} Add messages to stack //
|
||||
gstore.data.notif[1].data = gstore.data.notif[1].data.concat( msg.msg );
|
||||
|
|
Loading…
Reference in New Issue