Merge pull request #738 from Samiul30/patch-1

fix(Queue): fix jump
This commit is contained in:
Andromeda 2021-08-27 20:15:16 +05:45 committed by GitHub
commit 4ce5d29e32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,7 +500,7 @@ class Queue<T = unknown> {
// we now have to place that to position 1 // we now have to place that to position 1
// because we want to jump to that track // because we want to jump to that track
// this will skip current track and play the next one which will be the foundTrack // this will skip current track and play the next one which will be the foundTrack
this.tracks.splice(1, 0, foundTrack); this.tracks.splice(0, 0, foundTrack);
return void this.skip(); return void this.skip();
} }