Allow auto-starting replay via ?replay=1 URL param

Useful for demos and screenshots. Does not affect normal live view.
This commit is contained in:
Jeuners 2026-06-15 14:38:48 +02:00
parent e7ad200bb0
commit 93e879341c

View file

@ -515,3 +515,8 @@ refreshTexts();
connectWS();
setInterval(refreshProposals, 5000);
setInterval(refreshTexts, 8000);
// Optional demo mode: http://.../?replay=1 auto-starts replay
if (location.search.includes('replay=1')) {
setTimeout(loadReplay, 600);
}