[Glitch] Disable push notification when not logged in

Port 216dbaedaf to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Yamagishi Kazutoshi
2022-10-04 01:15:47 +09:00
committed by Claire
parent d86cb4cab8
commit cc93cd5d6c
4 changed files with 70 additions and 38 deletions

View File

@ -1,8 +1,10 @@
import 'packs/public-path';
import loadPolyfills from 'flavours/glitch/util/load_polyfills';
loadPolyfills().then(() => {
require('flavours/glitch/util/main').default();
loadPolyfills().then(async () => {
const { default: main } = import('flavours/glitch/util/main');
return main();
}).catch(e => {
console.error(e);
});