diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js index 522a3f7d83..730cf8c8de 100644 --- a/packages/backend/src/server/web/boot.js +++ b/packages/backend/src/server/web/boot.js @@ -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'); diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index 0baa6db0f8..e2d6c47407 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -40,6 +40,8 @@ import { reactionPicker } from '@/scripts/reaction-picker'; import { getUrlWithoutLoginId } from '@/scripts/login-id'; import { getAccountFromId } from '@/scripts/get-account-from-id'; +export default async function() { + console.info(`Misskey v${version}`); if (_DEV_) { @@ -424,3 +426,5 @@ if ($i) { signout(); }); } + +}