« get me outta code hell

socket log messages & misc npm updates - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-17 18:48:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 19:09:51 -0300
commitf2f7f781edac78303e1b536f5da9977f9f30c56a (patch)
treeee57b33f9639e0b006c527510c565c06925d29b5 /backend.js
parentafeda69313e0250d654986ba0203974c56b30670 (diff)
socket log messages & misc npm updates
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js5
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