doc: add more help for the notifications

This commit is contained in:
2023-12-26 17:48:14 -07:00
parent ddbb700c34
commit 25b1598fcb
13 changed files with 171 additions and 50 deletions

View File

@@ -329,10 +329,7 @@ export default class App extends Vue {
}
} catch (error) {
if (window.location.host.startsWith("localhost")) {
console.log(
"Ignoring this error getting VAPID for local development:",
error,
);
console.log("Ignoring the error getting VAPID for local development.");
} else {
console.error("Got an error initializing notifications:", error);
this.$notify(
@@ -424,7 +421,7 @@ export default class App extends Vue {
});
}
async turnOnNotifications() {
public async turnOnNotifications() {
return this.askPermission()
.then((permission) => {
console.log("Permission granted:", permission);