oopsie: add function that i forgot to commit #3

Merged
zotan merged 1 commit from :master into master 2021-03-06 00:10:14 +01:00

View file

@ -142,6 +142,14 @@ function initState() {
total = queue.length;
}
function previousTrack() {
if (index-- === 0)
index = total-1;
if (continuelist) {
playSong(queue[index])
}
}
function nextTrack() {
if (++index === total)
index = 0;