From 6c3a96cf635d58cb3deb4fa3370f022e290c2338 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 13 Dec 2025 23:13:20 +0100 Subject: [PATCH] this --- modules/web.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/web.html b/modules/web.html index e0d0149..27a81a0 100644 --- a/modules/web.html +++ b/modules/web.html @@ -397,10 +397,7 @@ }); function sendAddToToplay(songs){ - if(ws && ws.readyState === WebSocket.OPEN){ - ws.send(JSON.stringify({action:"add_to_toplay", songs: songs})); - setTimeout(() => ws.send(JSON.stringify({action:"get_toplay"})), 250); - } + if(ws && ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify({action:"add_to_toplay", songs: songs})) } connectWs();