fix(desktop): load firebase app

This commit is contained in:
Stephen Zhou 2025-07-25 23:01:51 +08:00
parent 0715cbce56
commit 5cf916e50f
No known key found for this signature in database
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()