cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject spec commit: Fix firefoxos tests
Date Fri, 25 Apr 2014 20:30:06 GMT
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 <rodrigos@outlook.com>
Authored: Wed Apr 23 15:35:42 2014 -0400
Committer: Rodrigo Silveira <rodrigos@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");


Mime
View raw message