mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix bug js son reception
This commit is contained in:
parent
afdd5b5a01
commit
51c4ffc3b6
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue