You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2014/04/25 22:30:06 UTC

spec commit: Fix firefoxos tests

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 4dd6891f3 -> 5d930ca8e


Fix firefoxos tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/5d930ca8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/5d930ca8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/5d930ca8

Branch: refs/heads/master
Commit: 5d930ca8e19923cedbb1ae0cf59b24525caecf87
Parents: 4dd6891
Author: Rodrigo Silveira <ro...@outlook.com>
Authored: Wed Apr 23 15:35:42 2014 -0400
Committer: Rodrigo Silveira <ro...@outlook.com>
Committed: Wed Apr 23 15:35:42 2014 -0400

----------------------------------------------------------------------
 cordova-incl.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/5d930ca8/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index 03a19b1..2712063 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -28,7 +28,8 @@ var PLAT;
         blackberry10: /(BB10)/,
         blackberry: /(PlayBook)|(BlackBerry)/,
         windows8: /MSAppHost/,
-        windowsphone: /Windows Phone/
+        windowsphone: /Windows Phone/,
+        firefoxos: /Firefox/
     };
     for (var key in platforms) {
         if (platforms[key].exec(navigator.userAgent)) {
@@ -40,7 +41,7 @@ var PLAT;
 
 var scripts = document.getElementsByTagName('script');
 var currentPath = scripts[scripts.length - 1].src;
-if (PLAT !== "blackberry10") {
+if (PLAT !== "blackberry10" && PLAT !== "firefoxos") {
     currentPath += '?paramShouldBeIgnored';
 }
 var cordovaPath = currentPath.replace("cordova-incl.js", "cordova.js");