mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Make ArmCord not cpu bomb on splash
This commit is contained in:
parent
c54a47f065
commit
8e16371521
2 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(`
|
||||
|
|
Loading…
Reference in a new issue