fix(boot): clear loading overlay after startup errors

This commit is contained in:
Codex committed 2026-09-26 20:32:29 +08:00
1 parent 3af7215854
commit 0d1da1352f
4 files changed
+18 -4

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
/* Never leave the desktop hidden behind the loading overlay after a script error. */
(() => {
const finish = () => document.querySelector('#boot')?.remove();
window.addEventListener('error', event => {
console.error('Life OS startup error:', event.error || event.message);
finish();
});
window.addEventListener('unhandledrejection', event => {
console.error('Life OS startup rejection:', event.reason);
finish();
});
setTimeout(finish, 1400);
})();