I have an ajax call in my code, when a new message comes it plays an audio file but the audio file is playing over and over again even if i didn't set it to loop.
Here's the <audio>
I used:
document.getElementById("notifsound").innerHTML = '<audio autoplay><source src="./uploads/notif.mp3" type="audio/mp3"><p></p></audio>';