Skip to content

Commit

Permalink
FindMe fixes
Browse files Browse the repository at this point in the history
- EnableHighAccuracy
- Alert on Error
  • Loading branch information
klassenjs committed Nov 7, 2024
1 parent 1912bfd commit 4a4630b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/findme.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function FindMeAction(Application, options) {
*/
this.run = function(selection, fields) {
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(this.gotoPosition.bind(this));
navigator.geolocation.getCurrentPosition(this.gotoPosition.bind(this), (e) => { console.error(e); alert("Find Me: " + e.message); }, { enableHighAccuracy: true });
} else {
alert('Geolocation is not supported.');
}
Expand Down

0 comments on commit 4a4630b

Please sign in to comment.