oopsie: add function that i forgot to commit
This commit is contained in:
parent
f9c08f2948
commit
84df2966e1
|
@ -142,6 +142,14 @@ function initState() {
|
||||||
total = queue.length;
|
total = queue.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function previousTrack() {
|
||||||
|
if (index-- === 0)
|
||||||
|
index = total-1;
|
||||||
|
if (continuelist) {
|
||||||
|
playSong(queue[index])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function nextTrack() {
|
function nextTrack() {
|
||||||
if (++index === total)
|
if (++index === total)
|
||||||
index = 0;
|
index = 0;
|
||||||
|
|
Loading…
Reference in a new issue