forked from MapComplete/MapComplete
Fix #1304
This commit is contained in:
parent
c900bfccb1
commit
d04f56603e
2 changed files with 4 additions and 6 deletions
|
@ -27,9 +27,9 @@ export class GeolocationControl extends VariableUiElement {
|
|||
const timeDiff = (new Date().getTime() - lastClick.getTime()) / 1000
|
||||
return timeDiff <= 3
|
||||
})
|
||||
const geolocationState = geolocationHandler.geolocationState
|
||||
const geolocationState = geolocationHandler?.geolocationState
|
||||
super(
|
||||
geolocationState.permission.map(
|
||||
geolocationState?.permission?.map(
|
||||
(permission) => {
|
||||
if (permission === "denied") {
|
||||
return Svg.location_refused_svg()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue