Skip to content

Commit

Permalink
fix space in permission name (#26794)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickolanack authored May 16, 2023
1 parent d26dda0 commit 3e8ffb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/permissions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The Permissions interface of the [Permissions API](/en-US/docs/Web/API/Permissio
## Example

```js
navigator.permissions.query({ name: " geolocation" }).then((result) => {
navigator.permissions.query({ name: "geolocation" }).then((result) => {
if (result.state === "granted") {
showLocalNewsWithGeolocation();
} else if (result.state === "prompt") {
Expand Down

0 comments on commit 3e8ffb9

Please sign in to comment.