diff --git a/src/components/Notifications/BackgroundNotificationClickHandler.js b/src/components/Notifications/BackgroundNotificationClickHandler.js index 8c8285c8..ea12b171 100644 --- a/src/components/Notifications/BackgroundNotificationClickHandler.js +++ b/src/components/Notifications/BackgroundNotificationClickHandler.js @@ -3,11 +3,8 @@ import { useEffect } from 'react'; const BackgroundNotificationClickHandler = () => { useEffect(() => { const handleNotificationClickMessage = (event) => { - console.log('Message received from service worker:', event); - if (event.data?.type === 'navigate') { const targetUrl = event.data.url || '/'; - console.log(`Redirecting to: ${targetUrl}`); window.location.href = targetUrl; // Navigate to the target URL } };