Rik Schennink created CB-6007:
---------------------------------

             Summary: If cordova.js is referenced using cache bust the plugin 
path is derived incorrectly.
                 Key: CB-6007
                 URL: https://issues.apache.org/jira/browse/CB-6007
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 3.3.0
            Reporter: Rik Schennink


The path below functions correctly.
"vendor/apache/ios/cordova.js" -> "vendor/apache/ios"

The following path returns 'null'.
"vendor/apache/ios/cordova.js?bust=v1.1"

Problem is located in 'findCordovaPath()' line '1369'. Adding the following 
line of js before the if statement fixes the problem for me (could probably be 
optimised).

{code}
// make sure querystring parameters are not taken into account in the comparison
src = src.indexOf('?') !== -1 ? src.split('?')[0] : src;
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to