From f59da014f251d6637c544b82f99452d53ed25bfe 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(); } }