Skip to content

Commit

Permalink
Switch off notifications sound
Browse files Browse the repository at this point in the history
Notifications are silent now when tracks changes
Addresses #53
  • Loading branch information
v12 committed Mar 24, 2016
1 parent edc556b commit eee0d30
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 eee0d30

Please sign in to comment.