From b11cdc13595bcf744d04824f09d705aa0d43e2bc Mon Sep 17 00:00:00 2001 From: yityu <444546271@qq.com> Date: Tue, 10 Dec 2024 17:28:28 +0800 Subject: [PATCH] Update single-html/loader-and-starter.js --- single-html/loader-and-starter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/single-html/loader-and-starter.js b/single-html/loader-and-starter.js index f7bb3f6..9203a48 100644 --- a/single-html/loader-and-starter.js +++ b/single-html/loader-and-starter.js @@ -1,5 +1,10 @@ window.startGame = function() { - window.boot() + var startInterval = setInterval(() => { + if (window.registerLoad) { + window.boot(); + clearInterval(startInterval); + } + }, 16) } window.pauseGame = function() {