Fix bug js son reception

This commit is contained in:
OsaAjani 2015-12-09 20:18:31 +01:00
parent 0a5cae859c
commit 9bbd175a48
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ function scrollDownDiscussion()
*/ */
function playReceptionSound () 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() jQuery(document).ready(function()