Skip to content

Commit

Permalink
hide Baidu example
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Apr 24, 2024
1 parent 574c4ca commit 19030c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/website/docs/web-api/geolocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ type CustomProvider = (
};
```

::: details Baidu example

For example, in case of Baidu, you can write something like this:

```ts
Expand Down Expand Up @@ -189,4 +191,6 @@ const geo = trackGeolocation({
});
```

:::

Array of `additionalProviders` would be used in the order they are passed to the `trackGeolocation` function. The first provider that returns the coordinates would be used. It is used only if the browser [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) is not available or fails.

0 comments on commit 19030c0

Please sign in to comment.