diff --git a/src/content/splash.html b/src/content/splash.html index ae7adc3..fd3aed3 100644 --- a/src/content/splash.html +++ b/src/content/splash.html @@ -63,9 +63,7 @@ } } - while (check() == false) { - console.log("Installing"); - } + while (check() === false) await new Promise((r) => setTimeout(r, 10)); setTimeout(() => { window.armcord.splashEnd(); switch (window.armcord.channel) { diff --git a/src/window.ts b/src/window.ts index 5875833..8104747 100644 --- a/src/window.ts +++ b/src/window.ts @@ -231,7 +231,7 @@ async function doAfterDefiningTheWindow() { tray.setImage(trayPath); } else if ((await getConfig("skipSplash")) == true) { while (modInstallState == "installing") { - sleep(1000); + await sleep(1000); } mainWindow.loadURL("data:text/html,%3Ch1%3ELoading%21%3C%2Fh1%3E"); mainWindow.webContents.executeJavaScript(`