From eee0d30e9903885f50053addcd2b11b108fe5f2b Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 24 Mar 2016 15:37:07 +0200 Subject: [PATCH] Switch off notifications sound Notifications are silent now when tracks changes Addresses https://github.com/gillesdemey/Cumulus/issues/53 --- app/js/stores/currentTrackStore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/js/stores/currentTrackStore.js b/app/js/stores/currentTrackStore.js index c77b7fd..21d55f1 100644 --- a/app/js/stores/currentTrackStore.js +++ b/app/js/stores/currentTrackStore.js @@ -13,8 +13,9 @@ var _audio = new Audio() // Current audio element function _showNotification(track) { if (document.visibilityState !== 'hidden') return new window.Notification(track.user.username, { - body : track.title, - icon : track.artwork_url, + body : track.title, + icon : track.artwork_url, + silent : true }) }