Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fdf10c

Browse files
committed
make linter happy
1 parentd7066d0 commit1fdf10c

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

‎site/src/contexts/usePushNotifications.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ export const usePushNotifications = (): PushNotifications => {
4848
setLoading(true);
4949
constregistration=awaitnavigator.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
constvapidPublicKey=buildInfoQuery.data?.push_notifications_public_key;
5853

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

Lines changed: 0 additions & 2 deletions
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
<divclassName="border-0 border-b border-solid h-[72px] flex items-center leading-none px-6">
5452
<NavLinkto="/workspaces">

‎site/src/serviceWorker.ts‎

Lines changed: 0 additions & 14 deletions
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-
constdata=event.notification.data;
51-
// if (data && data.url) {
52-
// event.waitUntil(
53-
// clients.openWindow(data.url)
54-
// );
55-
// }
5642
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp