Merge pull request #72 from devalexwhite/main
Fix bug where music playlist does not loop
This commit is contained in:
commit
50e526639c
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ const playerEnded = () => {
|
||||||
// next track
|
// next track
|
||||||
currentTrack += 1;
|
currentTrack += 1;
|
||||||
// roll over and re-randomize the tracks
|
// roll over and re-randomize the tracks
|
||||||
if (currentTrack >= playlist.availableFiles) {
|
if (currentTrack >= playlist.availableFiles.length) {
|
||||||
randomizePlaylist();
|
randomizePlaylist();
|
||||||
currentTrack = 0;
|
currentTrack = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue