Github user vladimir-kotikov commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-geolocation/pull/62#discussion_r48596423
  
    --- Diff: www/android/geolocation.js ---
    @@ -52,7 +62,20 @@ module.exports = {
               var geo = 
cordova.require('cordova/modulemapper').getOriginalSymbol(window, 
'navigator.geolocation');
               geo.clearWatch(args[0]);
             }
    -        exec(win, error, "Geolocation", "getPermission", []);
    +        var fail = function() {
    +            if (error) {
    +                error(illegalAccessError);
    +            }
    +        };
    +        exec(win, fail, "Geolocation", "getPermission", []);
         }
     };
     
    +// mimic PositionError to be compliant with W3C spec
    +var illegalAccessError = {
    --- End diff --
    
    Insead of creating custom object, can we reuse [PositionError 
polyfill](https://github.com/apache/cordova-plugin-geolocation/blob/master/www/PositionError.js)
 here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to