Skip to content

Commit

Permalink
fix replay when new game
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyijie committed Nov 8, 2023
1 parent 35d231d commit 0796ac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function Home() {

if (!gameOver) {
audio.loop = true
audio.currentTime = 0
audio.play()
return () => audio.pause()
}
Expand Down

0 comments on commit 0796ac3

Please sign in to comment.