From 6de5ce75b13f80ae09e4b85c1cd1d57ace22c5dd Mon Sep 17 00:00:00 2001 From: moris Date: Sun, 9 Feb 2025 20:02:30 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A8=E3=83=95=E3=82=A7=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/boot/main-boot.ts | 34 ------------------------- 1 file changed, 34 deletions(-) diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 2bf9029479..8c4e8422e0 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -83,33 +83,6 @@ export async function mainBoot() { }); } - try { - if (defaultStore.state.enableSeasonalScreenEffect) { - const month = new Date().getMonth() + 1; - if (defaultStore.state.hemisphere === 'S') { - // ▼南半球 - if (month === 7 || month === 8) { - const SnowfallEffect = (await import('@/scripts/snowfall-effect.js')).SnowfallEffect; - new SnowfallEffect({}).render(); - } - } else { - // ▼北半球 - if (month === 12 || month === 1) { - const SnowfallEffect = (await import('@/scripts/snowfall-effect.js')).SnowfallEffect; - new SnowfallEffect({}).render(); - } else if (month === 3 || month === 4) { - const SakuraEffect = (await import('@/scripts/snowfall-effect.js')).SnowfallEffect; - new SakuraEffect({ - sakura: true, - }).render(); - } - } - } - } catch (error) { - // console.error(error); - console.error('Failed to initialise the seasonal screen effect canvas context:', error); - } - if ($i) { defaultStore.loaded.then(() => { if (defaultStore.state.accountSetupWizard !== -1) { @@ -310,13 +283,6 @@ export async function mainBoot() { }); } - if ('Notification' in window) { - // 許可を得ていなかったらリクエスト - if (Notification.permission === 'default') { - Notification.requestPermission(); - } - } - const main = markRaw(stream.useChannel('main', null, 'System')); // 自分の情報が更新されたとき