From 9bbd175a482cc9cc39fc2138e36a702826384e15 Mon Sep 17 00:00:00 2001 From: OsaAjani Date: Wed, 9 Dec 2015 20:18:31 +0100 Subject: [PATCH] Fix bug js son reception --- js/custom.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/custom.js b/js/custom.js index edeecda..e282371 100755 --- a/js/custom.js +++ b/js/custom.js @@ -56,7 +56,11 @@ function scrollDownDiscussion() */ function playReceptionSound () { - jQuery('body').find('#reception-sound')[0].play(); + var receptionSound = jQuery('body').find('#reception-sound'); + if (receptionSound) + { + receptionSound[0].play(); + } } jQuery(document).ready(function()