From 290fd8c7ccf58be16e2a0e9e9c139208d1862f6f Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:36:36 +0900 Subject: enhance(frontend): ブラウザの通知権限をより確実に取得できるように (#16758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * enhance(frontend): ブラウザの通知権限をより確実に取得できるように * Update Changelog --- packages/frontend/src/boot/main-boot.ts | 7 ------- .../components/MkPushNotificationAllowButton.vue | 24 +++++++++++++++++++--- 2 files changed, 21 insertions(+), 10 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 18817d3f79..10b1199bbb 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -303,13 +303,6 @@ export async function mainBoot() { }); } - if ('Notification' in window) { - // 許可を得ていなかったらリクエスト - if (Notification.permission === 'default') { - Notification.requestPermission(); - } - } - if (store.s.realtimeMode) { const stream = useStream(); diff --git a/packages/frontend/src/components/MkPushNotificationAllowButton.vue b/packages/frontend/src/components/MkPushNotificationAllowButton.vue index 697346020c..38441b0ea6 100644 --- a/packages/frontend/src/components/MkPushNotificationAllowButton.vue +++ b/packages/frontend/src/components/MkPushNotificationAllowButton.vue @@ -42,10 +42,11 @@ SPDX-License-Identifier: AGPL-3.0-only