« 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
committerFlorrie <towerofnix@gmail.com>2020-07-17 18:48:32 -0300
commit4b171a6a280b7f9927e95a72470daed551aa6e33 (patch)
tree159ad1c66a55a78968e72440620ffcd70c95ef94 /backend.js
parenta2437eafb1a2d7f39c7e816a693ec4f03654b636 (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 67c6335..f2c4d59 100644
--- a/backend.js
+++ b/backend.js
@@ -298,6 +298,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