🐛 Push previous track in queue array
This commit is contained in:
parent
4390ff3e92
commit
7416662b1b
1 changed files with 1 additions and 0 deletions
|
@ -731,6 +731,7 @@ class Player extends EventEmitter {
|
||||||
if (!queue.repeatMode && !firstPlay) {
|
if (!queue.repeatMode && !firstPlay) {
|
||||||
const oldTrack = queue.tracks.shift()
|
const oldTrack = queue.tracks.shift()
|
||||||
if (queue.loopMode) queue.tracks.push(oldTrack) // add the track at the end of the queue
|
if (queue.loopMode) queue.tracks.push(oldTrack) // add the track at the end of the queue
|
||||||
|
queue.previousTracks.push(oldTrack)
|
||||||
}
|
}
|
||||||
const track = queue.playing
|
const track = queue.playing
|
||||||
// Reset lastSkipped state
|
// Reset lastSkipped state
|
||||||
|
|
Loading…
Reference in a new issue