This commit is contained in:
2025-12-13 23:13:20 +01:00
parent 16e0fcf691
commit 6c3a96cf63
+1 -4
View File
@@ -397,10 +397,7 @@
}); });
function sendAddToToplay(songs){ function sendAddToToplay(songs){
if(ws && ws.readyState === WebSocket.OPEN){ if(ws && ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify({action:"add_to_toplay", songs: songs}))
ws.send(JSON.stringify({action:"add_to_toplay", songs: songs}));
setTimeout(() => ws.send(JSON.stringify({action:"get_toplay"})), 250);
}
} }
connectWs(); connectWs();