Skip to content

Commit

Permalink
Fix [BUG] When pausing a song in the first 10 seconds, it will end th…
Browse files Browse the repository at this point in the history
…e song prematurely vicwomg#319
  • Loading branch information
vicwomg committed Mar 6, 2024
1 parent 0b2e89c commit f2c714b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

// handle timeout if video fails to play
setTimeout(() => {
if (!isVideoPlaying(video)) {
if (!isVideoPlaying(video) && !isPaused) {
endSong();
}
}, 10000);
Expand Down

0 comments on commit f2c714b

Please sign in to comment.