correct check for notification sound

This commit is contained in:
oliver 2015-05-17 20:54:00 +02:00
commit bcd5a6b8da

View file

@ -8,7 +8,7 @@
function notify() function notify()
{ {
var notifySound = $("#notify-sound"); var notifySound = $("#notify-sound");
if(notifySound) { if(notifySound.length > 0) {
notifySound.get(0).play(); notifySound.get(0).play();
} }
} }