Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fdf10c

Browse files
committed
make linter happy
1 parent d7066d0 commit 1fdf10c

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

site/src/contexts/usePushNotifications.ts

-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ export const usePushNotifications = (): PushNotifications => {
4848
setLoading(true);
4949
const registration = await navigator.serviceWorker.ready;
5050

51-
console.log(
52-
"BUILD INFO",
53-
buildInfoQuery.data?.push_notifications_public_key,
54-
);
55-
5651
// Note: You'd typically get this key from your server
5752
const vapidPublicKey = buildInfoQuery.data?.push_notifications_public_key;
5853

site/src/modules/dashboard/Navbar/NavbarView.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
4747
const { subscribed, loading, subscribe, unsubscribe } =
4848
usePushNotifications();
4949

50-
console.log("HERE");
51-
5250
return (
5351
<div className="border-0 border-b border-solid h-[72px] flex items-center leading-none px-6">
5452
<NavLink to="/workspaces">

site/src/serviceWorker.ts

-14
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,15 @@ self.addEventListener("push", (event) => {
2828
return;
2929
}
3030

31-
console.log("PAYLOAD", payload);
32-
3331
event.waitUntil(
3432
self.registration.showNotification(payload.title, {
3533
body: payload.body || "",
3634
icon: payload.icon || "/favicon.ico",
37-
// actions: payload.actions.map((action: PushNotificationAction) => ({
38-
// title: action.title,
39-
// action: action.url,
40-
// })) || [],
4135
}),
4236
);
4337
});
4438

4539
// Handle notification click
4640
self.addEventListener("notificationclick", (event) => {
4741
event.notification.close();
48-
49-
// If a link is provided, navigate to it
50-
const data = event.notification.data;
51-
// if (data && data.url) {
52-
// event.waitUntil(
53-
// clients.openWindow(data.url)
54-
// );
55-
// }
5642
});

0 commit comments

Comments
 (0)