Skip to content

Commit

Permalink
Fixed more typos in the README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Feb 8, 2025
1 parent 90182af commit 6aa8e7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ document.getElementById("notificationsSwitch").addEventListener("click", async (
/// Tell the user something went wrong here.
console.error(error);
}
}
});

...
Expand All @@ -330,7 +329,7 @@ export async function registerSubscription(subscription) {
...subscription.toJSON(),
/// It is good practice to provide the applicationServerKey back here so we can track which one was used if multiple were provided during configuration.
applicationServerKey: subscription.options.applicationServerKey,
}
},
});

/// Do something with your registration. Some may use it to store notification settings and display those back to the user.
Expand All @@ -350,7 +349,7 @@ import WebPush

do {
try await manager.send(
json: ["title": "Test Notification", "body": "Hello, World!",
json: ["title": "Test Notification", "body": "Hello, World!"],
to: subscriber
/// If sent from a request, pass the request's logger here to maintain its metadata.
// logger: request.logger
Expand Down

0 comments on commit 6aa8e7c

Please sign in to comment.