overhaul gpx creation and usage
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
}
|
||||
|
||||
ns.Geo = {
|
||||
current() {
|
||||
current(options = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const service = geolocation();
|
||||
if (!service) {
|
||||
@@ -43,7 +43,8 @@
|
||||
{
|
||||
...WATCH_OPTIONS,
|
||||
timeout: ns.Config.geolocationTimeoutMs,
|
||||
maximumAge: 30000
|
||||
maximumAge: 30000,
|
||||
...options
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user