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
@@ -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()