From 4b171a6a280b7f9927e95a72470daed551aa6e33 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 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 -- cgit 1.3.0-6-gf8a5