diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-17 18:48:32 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-16 19:09:51 -0300 |
commit | f2f7f781edac78303e1b536f5da9977f9f30c56a (patch) | |
tree | ee57b33f9639e0b006c527510c565c06925d29b5 /backend.js | |
parent | afeda69313e0250d654986ba0203974c56b30670 (diff) |
socket log messages & misc npm updates
Diffstat (limited to 'backend.js')
-rw-r--r-- | backend.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.js b/backend.js index fe7014b..e75b1a8 100644 --- a/backend.js +++ b/backend.js @@ -283,6 +283,11 @@ class QueuePlayer extends EventEmitter { return focusItem } + replaceAllItems(newItems) { + this.queueGrouplike.items = newItems + this.emitQueueUpdated() + } + clearQueuePast(track) { const { items } = this.queueGrouplike const index = items.indexOf(track) + 1 |