From f2f7f781edac78303e1b536f5da9977f9f30c56a Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 17 Jul 2020 18:48:32 -0300 Subject: socket log messages & misc npm updates --- backend.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend.js') 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 -- cgit 1.3.0-6-gf8a5