Pebble: return the current position to the caller of the getCurrentPosition function.

This fixes a bug introduced in d8894d315a that affects also #643.
master
Daniele Gobbetti 2017-04-08 08:34:33 +02:00
parent 60ed9ca373
commit 4dbc255ad5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ navigator.geolocation.getCurrentPosition = function(success, failure, options) {
if(options && options.maximumAge && geoposition.timestamp < Date.now() - options.maximumAge) {
failure({ code: 2, message: "POSITION_UNAVAILABLE"});
} else {
success();
success(geoposition);
}
}