From 941ed0a00f56be4f4bd75d0dac62e5de680c8f79 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 31 May 2024 06:55:31 +0700 Subject: [PATCH] Fix loading screen not working properly --- src/modules/loading-screen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/loading-screen.ts b/src/modules/loading-screen.ts index 624ede2..ec46a48 100644 --- a/src/modules/loading-screen.ts +++ b/src/modules/loading-screen.ts @@ -163,11 +163,11 @@ export class LoadingScreen { `; } - LoadingScreen.reset(); + setTimeout(LoadingScreen.reset, 2000); } static reset() { - LoadingScreen.#$bgStyle && setTimeout(() => LoadingScreen.#$bgStyle.textContent = '', 2000); + LoadingScreen.#$bgStyle && (LoadingScreen.#$bgStyle.textContent = ''); LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add('bx-gone'); LoadingScreen.#waitTimeInterval && clearInterval(LoadingScreen.#waitTimeInterval);