mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-05 20:57:14 +02:00
Pebble: return the current position to the caller of the getCurrentPosition function.
This fixes a bug introduced in d8894d315a
that affects also #643.
This commit is contained in:
parent
60ed9ca373
commit
4dbc255ad5
@ -4,7 +4,7 @@ navigator.geolocation.getCurrentPosition = function(success, failure, options) {
|
|||||||
if(options && options.maximumAge && geoposition.timestamp < Date.now() - options.maximumAge) {
|
if(options && options.maximumAge && geoposition.timestamp < Date.now() - options.maximumAge) {
|
||||||
failure({ code: 2, message: "POSITION_UNAVAILABLE"});
|
failure({ code: 2, message: "POSITION_UNAVAILABLE"});
|
||||||
} else {
|
} else {
|
||||||
success();
|
success(geoposition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user