about summary refs log tree commit diff
path: root/app/javascript/packs
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-04 01:15:47 +0900
committerGitHub <noreply@github.com>2022-10-03 18:15:47 +0200
commit216dbaedaf587db834cfdd53b896e9c7e1284d9c (patch)
tree7b03a9e780675f0cd4a35795a0d32cabd663ec44 /app/javascript/packs
parent37eaa7fc01d8e9cbd06a62cc9ac4b3bd4d835240 (diff)
Disable push notification when not logged in (#19272)
Diffstat (limited to 'app/javascript/packs')
-rw-r--r--app/javascript/packs/application.js6
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);
 });