Play a sound for notification (if enabled)

This commit is contained in:
Simon Vermeersch 2017-01-15 13:48:16 +01:00 committed by Griatch
parent 7027a2cf9b
commit 2c01373143
2 changed files with 4 additions and 0 deletions

View file

@ -367,6 +367,10 @@ function onNewLine(text, originator) {
}
});
}
if (("notification_sound" in options) && (options["notification_sound"])) {
var audio = new Audio("/static/webclient/media/notification.wav");
audio.play();
}
}
}