From 8d4f6ff728b6c51a7c81e4c8b9aa2fcb552b7950 Mon Sep 17 00:00:00 2001 From: jnkeniaem Date: Tue, 26 Nov 2024 17:06:35 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20FIX:=20messaging=20type=20error=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Cabinet/firebase/firebase-messaging-sw.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Cabinet/firebase/firebase-messaging-sw.ts b/frontend/src/Cabinet/firebase/firebase-messaging-sw.ts index 0509f1301..13dc3491c 100644 --- a/frontend/src/Cabinet/firebase/firebase-messaging-sw.ts +++ b/frontend/src/Cabinet/firebase/firebase-messaging-sw.ts @@ -20,7 +20,7 @@ export const firebaseConfig = { }; const app = initializeApp(firebaseConfig); -let messaging: null | Messaging = null; +// let messaging: null | Messaging = null; let isApiSupported = false; // NOTE : 사용자 브라우저가 푸시 알림 기능을 지원하는지 확인 @@ -31,10 +31,10 @@ let isApiSupported = false; // typeof window.navigator !== "undefined" && // isApiSupported // ) { -// messaging = getMessaging(app); +// messaging = getMessaging(app); // } // }); -messaging = getMessaging(app); +let messaging = getMessaging(app); const unsupportedMsg = `사용 중인 환경에서는 푸시 알림 기능이 지원되지 않습니다.