From bcd5a6b8dab7f2e6166c98b0a0ae9aea3904b18d Mon Sep 17 00:00:00 2001 From: oliver Date: Sun, 17 May 2015 20:54:00 +0200 Subject: [PATCH] correct check for notification sound --- www/js/notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }