From 6e0259daff3ab52fc46b883b9625a5e17f13ff6a Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 06:29:08 +0000 Subject: [PATCH] library opens again: the playing tile's class list no longer gets an empty token (which threw and aborted the render) Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6468057..0bb1efe 100644 --- a/index.html +++ b/index.html @@ -1676,7 +1676,7 @@ $("#libBtn").addEventListener("click", async () => { fromT.addEventListener("click", (e) => { e.stopPropagation(); $("#lib").classList.add("hidden"); stationFrom(t); }); art.append(addT, fromT); d.append(art, Object.assign(document.createElement("b"), { textContent: t.spec.title }), Object.assign(document.createElement("small"), { textContent: `${t.spec.bpm} bpm · ${t.spec.key}${(t.plays || 0) > 1 ? " · ×" + t.plays : ""}`, title: t.spec.seed })); - d.dataset.id = t.id; if (state.current && state.current.spec && state.current.spec.id === t.id) d.classList.add("now", state.playing ? "" : "paused"); + d.dataset.id = t.id; if (state.current && state.current.spec && state.current.spec.id === t.id) { d.classList.add("now"); if (!state.playing) d.classList.add("paused"); } d.addEventListener("click", () => { // the library stays open; the track plays underneath, and the bar at the bottom follows it if (state.current && state.current.spec && state.current.spec.id === t.id) { $("#play").click(); return; }