Skip to content

Commit 212ea0d

Browse files
committed
Merge pull request #55 from v12/silent-notifications
Switch off notifications sound
2 parents edc556b + eee0d30 commit 212ea0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: app/js/stores/currentTrackStore.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ var _audio = new Audio() // Current audio element
1313
function _showNotification(track) {
1414
if (document.visibilityState !== 'hidden') return
1515
new window.Notification(track.user.username, {
16-
body : track.title,
17-
icon : track.artwork_url,
16+
body : track.title,
17+
icon : track.artwork_url,
18+
silent : true
1819
})
1920
}
2021

0 commit comments

Comments
 (0)