Skip to content
Snippets Groups Projects
Commit 0279267e authored by Joni Laukka's avatar Joni Laukka
Browse files

If tracking fails, the navigator will be disabled.

parent 4c125a44
No related branches found
No related tags found
2 merge requests!15Get game creation to user-marker-database-interactions,!8If tracking fails, the navigator will be disabled.
...@@ -60,6 +60,10 @@ class UserMap extends Component { ...@@ -60,6 +60,10 @@ class UserMap extends Component {
} }
}, (error) =>{ }, (error) =>{
console.log(error); console.log(error);
// disable tracking
if(this.watchPositionId != null){
navigator.geolocation.clearWatch(this.watchPositionId);
}
}, options); }, options);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment