Only jump to the start location if no coordinates are given in the URL

This commit is contained in:
Pieter Vander Vennet 2023-02-10 01:35:49 +01:00
parent 90f69bdd93
commit a3f704a57d
2 changed files with 8 additions and 1 deletions

View file

@ -91,6 +91,7 @@ export class GeolocationControl extends VariableUiElement {
geolocationState.currentGPSLocation.data === undefined
) {
lastClick.setData(new Date())
geolocationState.requestMoment.setData(new Date())
await geolocationState.requestPermission()
}