From ce788edf48e1c83f0feb2272ea911082e4e1f6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=B0=BD=EA=B8=B0?= Date: Fri, 27 Sep 2024 09:13:55 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20console=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=EC=9D=BC=EB=B6=80=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/serviceWorkerRegistration.js | 2 +- frontend/src/api/firebaseConfig.ts | 3 --- frontend/src/pages/FirebaseTest.tsx | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/public/serviceWorkerRegistration.js b/frontend/public/serviceWorkerRegistration.js index d5fd0c6..62e7a2a 100644 --- a/frontend/public/serviceWorkerRegistration.js +++ b/frontend/public/serviceWorkerRegistration.js @@ -17,7 +17,7 @@ const messaging = getMessaging(firebaseApp); const registerServiceWorker = async () => { if (!('serviceWorker' in navigator)) { - console.warn('현재 브라우저에서 Service Worker를 지원하지 않습니다.'); + console.warn('현재 브라우저에서 서비스 워커를 지원하지 않습니다.'); return; } diff --git a/frontend/src/api/firebaseConfig.ts b/frontend/src/api/firebaseConfig.ts index 59d7628..3e71c54 100644 --- a/frontend/src/api/firebaseConfig.ts +++ b/frontend/src/api/firebaseConfig.ts @@ -50,9 +50,6 @@ const getFcmToken = async () => { const handleForegroundMessages = () => { onMessage(messaging, (payload) => { - console.log('onMessage'); - console.log(payload); - if (!payload.data) return; console.log(payload.data); diff --git a/frontend/src/pages/FirebaseTest.tsx b/frontend/src/pages/FirebaseTest.tsx index 906ef2e..cdae563 100644 --- a/frontend/src/pages/FirebaseTest.tsx +++ b/frontend/src/pages/FirebaseTest.tsx @@ -7,7 +7,6 @@ export default function FirebaseTest() { const fcmToken = await getFcmToken(); if (fcmToken) { - console.log(fcmToken); await saveFcmToken(fcmToken); return; }