Skip to content

Commit

Permalink
fix: restart audio playback on repeated button pushes (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-pap committed Dec 15, 2023
1 parent 0d79c26 commit ab57f4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
audio.src = horn;
function handleClick() {
audio.load();
audio.play();
}
</script>
Expand Down

1 comment on commit ab57f4e

@vercel
Copy link

@vercel vercel bot commented on ab57f4e Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.