tweak boot.js

This commit is contained in:
syuilo 2022-07-14 21:52:58 +09:00
parent d43eb123b1
commit 10f4815d34

View File

@ -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;
}
}