Skip to content

Commit

Permalink
fix: geolocation do not work on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier committed Apr 25, 2023
1 parent 4c995ad commit b323860
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class LocalisationPage {
}

public onGeoLocate(): void {
console.log('onGeoLocate');
this._loadingState$.next(true);
window.navigator.geolocation.getCurrentPosition((position: GeolocationPosition): void => {
this.orientationLayout.filterForm.get('latitude')?.setValue(position.coords.latitude);
Expand Down

0 comments on commit b323860

Please sign in to comment.