From 4dbc255ad5d6313a5a6badd0310362e1e03789ca Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 8 Apr 2017 08:34:33 +0200 Subject: [PATCH] Pebble: return the current position to the caller of the getCurrentPosition function. This fixes a bug introduced in d8894d315ac36c678d84ed5a6d861b907cbe272f that affects also #643. --- app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js index 2cc23b513..513cf8ced 100644 --- a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js +++ b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js @@ -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); } }