Make ArmCord not cpu bomb on splash

This commit is contained in:
smartfridge 2022-12-25 13:52:21 +01:00
parent c54a47f065
commit 8e16371521
2 changed files with 2 additions and 4 deletions

View file

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

View file

@ -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(`