Merge pull request #4246 from RSSNext/07-26-fix-notification-web

This commit is contained in:
Stephen Zhou 2025-07-26 08:27:54 +08:00 committed by GitHub
commit 0bd1b982c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { env } from "@follow/shared/env.desktop"
import { getApp } from "firebase/app"
import { initializeApp } from "firebase/app"
import { getMessaging, getToken } from "firebase/messaging"
import { setAppMessagingToken } from "./atoms/app"
@ -31,7 +31,7 @@ export async function registerWebPushNotifications() {
await navigator.serviceWorker.ready
const app = getApp()
const app = initializeApp(firebaseConfig)
const messaging = getMessaging(app)
const permission = await Notification.requestPermission()