I want the audio to repeat every time the button is pressed. Instead, it only repeats after the audio finishes. (NOTE: I'm using JSX)
Javascript
playShot() {
var audio = document.getElementById('shot');
audio.play();
}
HTML
<a onClick={() => this.playShot()} style={{zIndex: 5}} id="gat"><img src={gate2}/></a>