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();