Fix bug js son reception

This commit is contained in:
OsaAjani 2015-12-09 20:18:31 +01:00
parent afdd5b5a01
commit 51c4ffc3b6

View file

@ -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()