From 7416662b1bee9fba9c950579873f451c7e56cbb8 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sun, 27 Dec 2020 00:11:00 +0100 Subject: [PATCH] :bug: Push previous track in queue array --- src/Player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.js b/src/Player.js index a06bb93..d0e9dc4 100644 --- a/src/Player.js +++ b/src/Player.js @@ -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