Skip to content

Commit ab57f4e

Browse files
authored
fix: restart audio playback on repeated button pushes (#504)
1 parent 0d79c26 commit ab57f4e

File tree

1 file changed

+1
-0
lines changed
  • content/tutorial/01-svelte/05-events/06-dom-event-forwarding/app-a/src/lib

1 file changed

+1
-0
lines changed

content/tutorial/01-svelte/05-events/06-dom-event-forwarding/app-a/src/lib/App.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
audio.src = horn;
77
88
function handleClick() {
9+
audio.load();
910
audio.play();
1011
}
1112
</script>

0 commit comments

Comments
 (0)