diff --git a/www/js/notification.js b/www/js/notification.js index b322fc21..1a6383ab 100644 --- a/www/js/notification.js +++ b/www/js/notification.js @@ -8,7 +8,7 @@ function notify() { var notifySound = $("#notify-sound"); - if(notifySound) { + if(notifySound.length > 0) { notifySound.get(0).play(); } }