Skip to content

Commit

Permalink
Add a note about priority
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Apr 24, 2024
1 parent 9a0402e commit 574c4ca
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 @@ -50,6 +50,10 @@ In some countries and regions, the use of geolocation can be restricted. If you

Geolocation integration of `@withease/web-api` allows to use any provider additionally to the default one provided by the browser. To do so, you need to pass an `additionalProviders` option to the `trackGeolocation` function.

::: tip
`additionalProviders` will be used only if the browser Geolocation API is not available or fails. Otherwise, the browser Geolocation API will be used.
:::

```ts
import { trackGeolocation } from '@withease/web-api';

Expand Down

0 comments on commit 574c4ca

Please sign in to comment.