Skip to content
Snippets Groups Projects
Commit 10f4815d authored by syuilo's avatar syuilo
Browse files

tweak boot.js

parent d43eb123
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@
localStorage.setItem('localeVersion', v);
} else {
await checkUpdate();
renderError('LOCALE_FETCH_FAILED');
renderError('LOCALE_FETCH');
return;
}
}
......@@ -60,7 +60,7 @@
.catch(async e => {
await checkUpdate();
console.error(e);
renderError('APP_FETCH_FAILED', e);
renderError('APP_IMPORT', e);
})
//#endregion
......@@ -115,7 +115,7 @@
let errorsElement = document.getElementById('errors');
if (!errorsElement) {
document.documentElement.innerHTML = `
document.body.innerHTML = `
<svg class="icon-warning" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-alert-triangle" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M12 9v2m0 4v.01"></path>
......@@ -286,7 +286,7 @@
}
} catch (e) {
console.error(e);
renderError('UPDATE_CHECK_FAILED', e);
renderError('UPDATE_CHECK', e);
throw e;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment