Merge pull request #4246 from RSSNext/07-26-fix-notification-web
This commit is contained in:
commit
0bd1b982c5
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue