Merge pull request #72 from devalexwhite/main

Fix bug where music playlist does not loop
This commit is contained in:
Matt Walsh 2025-04-05 18:10:10 -05:00 committed by GitHub
commit 50e526639c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,7 @@ const playerEnded = () => {
// next track
currentTrack += 1;
// roll over and re-randomize the tracks
if (currentTrack >= playlist.availableFiles) {
if (currentTrack >= playlist.availableFiles.length) {
randomizePlaylist();
currentTrack = 0;
}