oopsie: add function that i forgot to commit

This commit is contained in:
Leah 2021-03-05 23:10:43 +01:00
parent f9c08f2948
commit 84df2966e1

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;