From 1b16ce2a537dc0f4c3e536fd1228e8db867d8cd2 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 27 Dec 2025 22:18:25 +0100 Subject: [PATCH] retarded --- modules/web.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web.html b/modules/web.html index 85aabe5..6658ae9 100644 --- a/modules/web.html +++ b/modules/web.html @@ -427,7 +427,7 @@ const selected = playlist[selectedPlaylistIndex]; if(!selected) { alert("Invalid selection"); return; } 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")); selectedPlaylistIndex = null; return; @@ -452,7 +452,7 @@ } 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; }