Skip to content

Commit 456cd19

Browse files
Fixed more typos in the README examples
1 parent 90182af commit 456cd19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ document.getElementById("notificationsSwitch").addEventListener("click", async (
307307
/// Tell the user something went wrong here.
308308
console.error(error);
309309
}
310-
}
311310
});
312311

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

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

351350
do {
352351
try await manager.send(
353-
json: ["title": "Test Notification", "body": "Hello, World!",
352+
json: ["title": "Test Notification", "body": "Hello, World!"],
354353
to: subscriber
355354
/// If sent from a request, pass the request's logger here to maintain its metadata.
356355
// logger: request.logger

0 commit comments

Comments
 (0)