mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
fucking javascript (more like jewscript)
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user