mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-29 19:24:37 +02:00
fix boot sequence
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
// ブロックの中に入れないと、定義した変数がブラウザのグローバルスコープに登録されてしまい邪魔なので
|
||||
(async () => {
|
||||
console.log('init!!')
|
||||
window.onerror = (e) => {
|
||||
renderError('SOMETHING_HAPPENED', e.toString());
|
||||
};
|
||||
@@ -59,6 +60,7 @@
|
||||
: '';
|
||||
|
||||
import(`/assets/${CLIENT_ENTRY}${salt}`)
|
||||
.then(({ default: startApp }) => startApp())
|
||||
.catch(async () => {
|
||||
await checkUpdate();
|
||||
renderError('APP_FETCH_FAILED');
|
||||
|
||||
Reference in New Issue
Block a user