Merge branch 'master' into feature/better-file-caching

This commit is contained in:
Max Isom 2021-11-24 11:42:38 -06:00
commit 71b62cb3aa
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
5 changed files with 86 additions and 4 deletions

View file

@ -270,6 +270,10 @@ export default class {
this.queue = newQueue;
}
removeFromQueue(index: number, amount = 1): void {
this.queue.splice(this.queuePosition + index, amount);
}
removeCurrent(): void {
this.queue = [...this.queue.slice(0, this.queuePosition), ...this.queue.slice(this.queuePosition + 1)];
}