Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ios] Remove custom initialization of geolocation on navigator.

Now that we clobber navigator, this doesn't require special-casing.
  • Loading branch information...
commit 3dcdf354e830be69ee50de9cda4489404ffb2114 1 parent 7203d33
@agrieve agrieve authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/ios/platform.js
View
12 lib/ios/platform.js
@@ -22,13 +22,6 @@
module.exports = {
id: "ios",
initialize:function() {
- // iOS doesn't allow reassigning / overriding navigator.geolocation object.
- // So clobber its methods here instead :)
- var geo = require('cordova/plugin/geolocation');
-
- navigator.geolocation.getCurrentPosition = geo.getCurrentPosition;
- navigator.geolocation.watchPosition = geo.watchPosition;
- navigator.geolocation.clearWatch = geo.clearWatch;
},
clobbers: {
File: { // exists natively, override
@@ -64,7 +57,10 @@ module.exports = {
},
contacts:{
path:"cordova/plugin/ios/contacts"
- }
+ },
+ geolocation: {
+ path: 'cordova/plugin/geolocation'
+ },
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.