Skip to content

Commit

Permalink
Remove unnecessary console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatrakazas committed Jan 23, 2025
1 parent d278d13 commit fd4b8ee
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
};
Expand Down

0 comments on commit fd4b8ee

Please sign in to comment.