forked from MapComplete/MapComplete
Fix geolocalisation bugs on webkit
This commit is contained in:
parent
7a9c21f83d
commit
2913c28271
3 changed files with 4 additions and 3 deletions
|
@ -65,8 +65,8 @@ export class GeoLocationHandler extends UIElement {
|
|||
self._marker = newMarker;
|
||||
});
|
||||
|
||||
navigator.permissions.query({name: 'geolocation'})
|
||||
.then(function (status) {
|
||||
navigator?.permissions?.query({name: 'geolocation'})
|
||||
?.then(function (status) {
|
||||
console.log("Geolocation is already", status)
|
||||
if (status.state === "granted") {
|
||||
self.StartGeolocating();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue