1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 06:36:04 +00:00

try to fix music player not always autoplaying next

This commit is contained in:
mat 2024-12-11 08:59:24 +00:00
parent fc070a4348
commit 4b9eafe3da

View file

@ -64,10 +64,12 @@ VØJ - Moonlit`.split('\n')
function nextSong() {
currentSongIndex = (currentSongIndex + 1) % SONGS.length
musicPlayerEl?.play()
}
function prevSong() {
currentSongIndex = (currentSongIndex - 1 + SONGS.length) % SONGS.length
musicPlayerEl?.play()
}
</script>