Honour the "and play" half once the audio is ready

This commit is contained in:
gator 2026-09-17 18:24:53 +00:00
parent f3cfb15d51
commit 4d0d375dbb

View file

@ -293,6 +293,18 @@
((cs && cs.cuts) || []).forEach(function (x) { STATS[x.cut_id] = x; });
}
pane.innerHTML = paneHtml(meta, r.draft);
// "Prepare and play" promised both. Once the audio lands, play it.
if (REELWANT && String(PKG.reel_state || "") === "ready" && !REEL) {
REELWANT = false;
hideMsg("msg");
var rl = await api("reel", { draft_id: id });
if (rl.ok && (rl.shots || []).length) {
REEL = rl.shots; RAT = -1;
pane.innerHTML = paneHtml(meta, r.draft);
reelShow(0);
}
}
}
// The story the writer committed to before writing a shot. This is where a