You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
retarded
This commit is contained in:
@@ -427,7 +427,7 @@
|
|||||||
const selected = playlist[selectedPlaylistIndex];
|
const selected = playlist[selectedPlaylistIndex];
|
||||||
if(!selected) { alert("Invalid selection"); return; }
|
if(!selected) { alert("Invalid selection"); return; }
|
||||||
const path = (selected.official ? "" : "!") + selected.path;
|
const path = (selected.official ? "" : "!") + selected.path;
|
||||||
ws.send(JSON.stringify({action:"add_to_toplay", songs: [path], on_top: top}))
|
ws.send(JSON.stringify({action:"add_to_toplay", songs: [path], top: top}))
|
||||||
Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected"));
|
Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected"));
|
||||||
selectedPlaylistIndex = null;
|
selectedPlaylistIndex = null;
|
||||||
return;
|
return;
|
||||||
@@ -452,7 +452,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fullPath && ws && ws.readyState === WebSocket.OPEN) {
|
if (fullPath && ws && ws.readyState === WebSocket.OPEN) {
|
||||||
ws.send(JSON.stringify({ action:"add_to_toplay", songs:[fullPath], on_top: top}));
|
ws.send(JSON.stringify({ action:"add_to_toplay", songs:[fullPath], top: top}));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user