diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-10-04 01:15:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 18:15:47 +0200 |
commit | 216dbaedaf587db834cfdd53b896e9c7e1284d9c (patch) | |
tree | 7b03a9e780675f0cd4a35795a0d32cabd663ec44 /app/javascript/packs | |
parent | 37eaa7fc01d8e9cbd06a62cc9ac4b3bd4d835240 (diff) |
Disable push notification when not logged in (#19272)
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/application.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 91240aecf..0851f69b6 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -4,8 +4,10 @@ import { start } from '../mastodon/common'; start(); -loadPolyfills().then(() => { - require('../mastodon/main').default(); +loadPolyfills().then(async () => { + const { default: main } = import('mastodon/main'); + + return main(); }).catch(e => { console.error(e); }); |