Small fixes

This commit is contained in:
Pieter Vander Vennet 2023-10-17 17:17:19 +02:00
parent 059ef2c1bc
commit 68e9534034
2 changed files with 4 additions and 4 deletions

View file

@ -119,7 +119,7 @@ export class GeoLocationState {
return
}
if(navigator.permissions === undefined && navigator.geolocation !== undefined){
if (navigator.permissions === undefined && navigator.geolocation !== undefined) {
// This is probably safari - we just start watching right away
this.startWatching()
return
@ -158,8 +158,8 @@ export class GeoLocationState {
self.currentGPSLocation.setData(position.coords)
self._previousLocationGrant.setData("true")
},
function () {
console.warn("Could not get location with navigator.geolocation")
function (e) {
console.warn("Could not get location with navigator.geolocation due to", e)
},
{
enableHighAccuracy: true,