update boot timeout

This commit is contained in:
RoyceDa
2026-01-30 06:48:22 +02:00
parent dc788d8f13
commit d099346056

View File

@@ -91,11 +91,18 @@ const exposeContext = async () => {
let deviceId = await ipcRenderer.invoke("device:id");
setTimeout(() => {
/**
* Если после определенного таймаута приложение так и
* не загрузилось, то считаем, что процесс завис,
* и показываем экран ошибки. Так же отправляем
* сигнал в main процесс, чтобы тот мог попытаться
* откатить обновление.
*/
if(document.body.innerHTML.length < 100){
document.body.innerHTML = applicationError;
ipcRenderer.invoke("report-boot-process-failed");
}
}, 3000);
}, 5000);
let downloadsPath = await ipcRenderer.invoke("get-downloads-path");
if (process.contextIsolated) {