diff --git a/src/lib/notification/notification.ts b/src/lib/notification/notification.ts index 1b3728c9d..750c1032a 100644 --- a/src/lib/notification/notification.ts +++ b/src/lib/notification/notification.ts @@ -165,6 +165,7 @@ export const deleteToken = () => { if (window.Notification?.permission !== 'granted') return const firebaseApp = getFirebaseApp() + if (!firebaseApp) return const messaging = getMessaging(firebaseApp) deleteTokenFb(messaging) }