Update src/Notifier.js

Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Will Hunt 2019-06-03 21:19:17 +01:00 committed by GitHub
parent 300095f50f
commit 673a8fcb9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ const Notifier = {
let audioElement = selector; let audioElement = selector;
if (!selector) { if (!selector) {
if (!sound) { if (!sound) {
console.error("Tried to play alert sound but missing #messageAudio"); console.error("No audio element or sound to play for notification");
return; return;
} }
audioElement = new Audio(sound.url); audioElement = new Audio(sound.url);