Fix loading screen not working properly

This commit is contained in:
redphx 2024-05-31 06:55:31 +07:00
parent 1f632db6b4
commit 941ed0a00f

View File

@ -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);