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:
parent
e7ad200bb0
commit
93e879341c
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue