diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-14 13:13:05 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-14 13:13:05 +0900 |
| commit | 8a40026c5cc4acb8a290eca81dcfdd5b565a2123 (patch) | |
| tree | 6efd3684eb5e2ee36f376e5ec24039241b12f31d /packages/client | |
| parent | Fix v12.96.x Docker (#7982) (diff) | |
| download | sharkey-8a40026c5cc4acb8a290eca81dcfdd5b565a2123.tar.gz sharkey-8a40026c5cc4acb8a290eca81dcfdd5b565a2123.tar.bz2 sharkey-8a40026c5cc4acb8a290eca81dcfdd5b565a2123.zip | |
fix(client): improve error handling
Diffstat (limited to 'packages/client')
| -rw-r--r-- | packages/client/src/init.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index da5b0489ab..27ed781060 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -42,10 +42,6 @@ import { getAccountFromId } from '@/scripts/get-account-from-id'; console.info(`Misskey v${version}`); -// boot.jsのやつを解除 -window.onerror = null; -window.onunhandledrejection = null; - if (_DEV_) { console.warn('Development mode!!!'); @@ -224,6 +220,10 @@ const rootEl = document.createElement('div'); document.body.appendChild(rootEl); app.mount(rootEl); +// boot.jsのやつを解除 +window.onerror = null; +window.onunhandledrejection = null; + reactionPicker.init(); if (splash) { |