I have a website (gitter.im) that use notifications and I want to run sound when notifications are pushed. How can I add this code to notification?
(function() {
var a = document.createElement('audio')
a.setAttribute('autoplay', true)
a.setAttribute('src', 'http://www.soundjay.com/button/beep-03.mp3')
})();