Skip to content

Commit

Permalink
fix boot sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Apr 28, 2022
1 parent edb79ec commit e893dbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/server/web/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// ブロックの中に入れないと、定義した変数がブラウザのグローバルスコープに登録されてしまい邪魔なので
(async () => {
console.log('init!!')
window.onerror = (e) => {
renderError('SOMETHING_HAPPENED', e.toString());
};
Expand Down Expand Up @@ -59,6 +60,7 @@
: '';

import(`/assets/${CLIENT_ENTRY}${salt}`)
.then(({ default: startApp }) => startApp())
.catch(async () => {
await checkUpdate();
renderError('APP_FETCH_FAILED');
Expand Down
4 changes: 4 additions & 0 deletions packages/client/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand Down Expand Up @@ -424,3 +426,5 @@ if ($i) {
signout();
});
}

}

0 comments on commit e893dbf

Please sign in to comment.