Skip to content

Commit

Permalink
[FE] FIX: messaging type error 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jnkeniaem committed Nov 26, 2024
1 parent fb476fc commit 8d4f6ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/Cabinet/firebase/firebase-messaging-sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : 사용자 브라우저가 푸시 알림 기능을 지원하는지 확인
Expand All @@ -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 = `사용 중인 환경에서는 푸시 알림 기능이
지원되지 않습니다.
Expand Down

0 comments on commit 8d4f6ff

Please sign in to comment.