fix: view.main (added remote notification sound)

This commit is contained in:
xdrm-brackets 2017-12-06 20:05:26 +01:00
parent c107e6c38b
commit 7092a5f9c8
1 changed files with 1 additions and 1 deletions

View File

@ -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 );