Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 32eb87d

Browse files
authored
Fixing typo in Notification Request Permission snippet
1 parent 012b88a commit 32eb87d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/pwa-windows.js.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"body": [
3131
"// Requesting permission should only be done in response to a user action. This is a best practice, to avoid interrupting the user with permission prompts when the user hasn't yet interacted with a feature that uses notifications.",
3232
"${1:button}.addEventListener(\"${2:click}\", () => {",
33-
"\tNotifications.requestPermission().then(permission => {",
33+
"\tNotification.requestPermission().then(permission => {",
3434
"\t\tif (permission === \"granted\") {",
3535
"\t\t\t${0:console.log(\"The user accepted\")};",
3636
"\t\t}",
@@ -107,4 +107,4 @@
107107
"}"
108108
],
109109
}
110-
}
110+
}

0 commit comments

Comments
 (0)