diff options
-rw-r--r-- | public/common/play.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/public/common/play.js b/public/common/play.js index 13ce453..b91e4a0 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -845,7 +845,9 @@ async function init_replay() { } } -if (params.mode === "replay") - init_replay(); -if (params.mode === "play") - connect_play(); +window.addEventListener("load", function () { + if (params.mode === "replay") + init_replay(); + if (params.mode === "play") + connect_play(); +}); |