library opens again: the playing tile's class list no longer gets an empty token (which threw and aborted the render)
shots / shots (push) Successful in 2m26s
shots / shots (push) Successful in 2m26s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6
This commit is contained in:
1 parent
c2586c42e4
commit
6e0259daff
1 file changed
+1
-1
+1
-1
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user