Skip to content

Commit

Permalink
Merge pull request #55 from v12/silent-notifications
Browse files Browse the repository at this point in the history
Switch off notifications sound
  • Loading branch information
MichielDeMey committed Mar 24, 2016
2 parents edc556b + eee0d30 commit 212ea0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/js/stores/currentTrackStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down

0 comments on commit 212ea0d

Please sign in to comment.