Permalink
Browse files

Fix cordova.js load for bb10 (platform does not support ?params)

  • Loading branch information...
bryanhiggins committed Feb 18, 2014
1 parent 0265b01 commit 3d6bfed07b55b787b4033cff5edfb3a74de59b32
Showing with 4 additions and 1 deletion.
  1. +4 −1 cordova-incl.js
View
@@ -39,7 +39,10 @@ var PLAT;
})();
var scripts = document.getElementsByTagName('script');
-var currentPath = scripts[scripts.length - 1].src + '?paramShouldBeIgnored';
+var currentPath = scripts[scripts.length - 1].src;
+if (PLAT !== "blackberry10") {
+ currentPath += '?paramShouldBeIgnored';
+}
var cordovaPath = currentPath.replace("cordova-incl.js", "cordova.js");
if (!window._doNotWriteCordovaScript) {

0 comments on commit 3d6bfed

Please sign in to comment.