Update Queue.ts

This commit is contained in:
Samiul Islam 2021-08-27 13:17:01 +06:00 committed by GitHub
parent 43a5dd36d3
commit 3b92e9d492
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
// because we want to jump to that track
// 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();
}