in src/windows/NotificationProxy.js [242:264]
beep: function (winX, loseX, args) {
// set a default args if it is not set
args = args && args.length ? args : ['1'];
var snd = new Audio('ms-winsoundevent:Notification.Default');
var count = parseInt(args[0]) || 1;
snd.msAudioCategory = 'Alerts';
var onEvent = function () {
if (count > 0) {
snd.play();
} else {
snd.removeEventListener('ended', onEvent);
snd = null;
if (winX) {
winX(); // notification.js just sends null, but this is future friendly
}
}
count--;
};
snd.addEventListener('ended', onEvent);
onEvent();
},