mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 17:13:09 +02:00
fix(client): improve error handling
This commit is contained in:
parent
974250da6c
commit
8a40026c5c
2 changed files with 4 additions and 6 deletions
|
@ -45,8 +45,6 @@
|
||||||
localStorage.setItem('lang', lang);
|
localStorage.setItem('lang', lang);
|
||||||
localStorage.setItem('locale', await res.text());
|
localStorage.setItem('locale', await res.text());
|
||||||
localStorage.setItem('localeVersion', v);
|
localStorage.setItem('localeVersion', v);
|
||||||
} else if (localeOutdated) {
|
|
||||||
// nop
|
|
||||||
} else {
|
} else {
|
||||||
await checkUpdate();
|
await checkUpdate();
|
||||||
renderError('LOCALE_FETCH_FAILED');
|
renderError('LOCALE_FETCH_FAILED');
|
||||||
|
|
|
@ -42,10 +42,6 @@ import { getAccountFromId } from '@/scripts/get-account-from-id';
|
||||||
|
|
||||||
console.info(`Misskey v${version}`);
|
console.info(`Misskey v${version}`);
|
||||||
|
|
||||||
// boot.jsのやつを解除
|
|
||||||
window.onerror = null;
|
|
||||||
window.onunhandledrejection = null;
|
|
||||||
|
|
||||||
if (_DEV_) {
|
if (_DEV_) {
|
||||||
console.warn('Development mode!!!');
|
console.warn('Development mode!!!');
|
||||||
|
|
||||||
|
@ -224,6 +220,10 @@ const rootEl = document.createElement('div');
|
||||||
document.body.appendChild(rootEl);
|
document.body.appendChild(rootEl);
|
||||||
app.mount(rootEl);
|
app.mount(rootEl);
|
||||||
|
|
||||||
|
// boot.jsのやつを解除
|
||||||
|
window.onerror = null;
|
||||||
|
window.onunhandledrejection = null;
|
||||||
|
|
||||||
reactionPicker.init();
|
reactionPicker.init();
|
||||||
|
|
||||||
if (splash) {
|
if (splash) {
|
||||||
|
|
Loading…
Reference in a new issue