Open vlbee opened 6 years ago
https://github.com/fac-14/DAAMwk5/blob/master/public/assets/logic.js#L26-L34
You might also want to consider using the API's built in error callback parameter if there is an error retrieving coordinates.
You can read up on it here: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition
https://github.com/fac-14/DAAMwk5/blob/master/public/assets/logic.js#L26-L34
You might also want to consider using the API's built in error callback parameter if there is an error retrieving coordinates.
You can read up on it here: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition