mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
try to fix music player not always autoplaying next
This commit is contained in:
parent
fc070a4348
commit
4b9eafe3da
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue