fucking javascript (more like jewscript)

This commit is contained in:
2026-05-23 17:22:28 +02:00
parent f205dd41f9
commit efc71d0691
+2 -2
View File
@@ -242,12 +242,12 @@ function renderQueue() {
}
li.addEventListener("click", () => {
wsSend({ action: "remove_toplay", indexes: [li.dataset.idx] });
wsSend({ action: "remove_toplay", indexes: [Number(li.dataset.idx)] });
renderAll();
});
li.addEventListener("contextmenu", e => {
e.preventDefault();
wsSend({ action: "toggle_official_toplay", indexes: [li.dataset.idx] });
wsSend({ action: "toggle_official_toplay", indexes: [Number(li.dataset.idx)] });
renderAll();
})
ul.appendChild(li);