🐛 Push previous track in queue array

This commit is contained in:
Androz2091 2020-12-27 00:11:00 +01:00
parent 4390ff3e92
commit 7416662b1b

View file

@ -731,6 +731,7 @@ class Player extends EventEmitter {
if (!queue.repeatMode && !firstPlay) {
const oldTrack = queue.tracks.shift()
if (queue.loopMode) queue.tracks.push(oldTrack) // add the track at the end of the queue
queue.previousTracks.push(oldTrack)
}
const track = queue.playing
// Reset lastSkipped state