Skip to content
Permalink
Browse files
CB-10204 Fix getCurrentPosition options on Android
github close #60
  • Loading branch information
sgrebnov committed Jan 4, 2016
1 parent fe05459 commit 8cf37567c4c144303c59128664db71abe196bc23
Showing 1 changed file with 2 additions and 7 deletions.
@@ -29,20 +29,15 @@ module.exports = {
getCurrentPosition: function(success, error, args) {
var win = function() {
var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation');
geo.getCurrentPosition(success, error, {
enableHighAccuracy: args[0],
maximumAge: args[1]
});
geo.getCurrentPosition(success, error, args);
};
exec(win, error, "Geolocation", "getPermission", []);
},

watchPosition: function(success, error, args) {
var win = function() {
var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation');
geo.watchPosition(success, error, {
enableHighAccuracy: args[1]
});
geo.watchPosition(success, error, args);
};
exec(win, error, "Geolocation", "getPermission", []);
},

0 comments on commit 8cf3756

Please sign in to comment.