Skip to content
Snippets Groups Projects
Commit 4d6113d0 authored by M3034's avatar M3034
Browse files

Merge branch '28-lopeta-seuranta-jos-paikkatieto-on-estetty' into 'development'

If tracking fails, the navigator will be disabled.

See merge request !8
parents 4c125a44 0279267e
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