cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject cordova-plugin-test-framework git commit: xhr status of 0 is valid as well, some platforms when loading from file: url do not report 200
Date Wed, 14 Jan 2015 23:10:30 GMT
Repository: cordova-plugin-test-framework
Updated Branches:
  refs/heads/master 33af05ec7 -> 14a1905b9


xhr status of 0 is valid as well, some platforms when loading from file: url do not report
200


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/commit/14a1905b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/tree/14a1905b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/diff/14a1905b

Branch: refs/heads/master
Commit: 14a1905b9b74aefe82b59a8dcdbe378332f9d500
Parents: 33af05e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Jan 14 15:10:20 2015 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Jan 14 15:10:20 2015 -0800

----------------------------------------------------------------------
 www/medic.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/14a1905b/www/medic.js
----------------------------------------------------------------------
diff --git a/www/medic.js b/www/medic.js
index a0a4f17..f94365c 100644
--- a/www/medic.js
+++ b/www/medic.js
@@ -38,7 +38,7 @@ exports.load = function (callback) {
   var xhr = new XMLHttpRequest();
   xhr.open("GET", "../medic.json", true);
   xhr.onload = function() {
-    if (xhr.readyState == 4 && xhr.status == 200) {
+    if (xhr.readyState == 4 && (xhr.status == 0 || xhr.status == 200)) {
       var cfg = JSON.parse(xhr.responseText);
       exports.logurl = cfg.couchdb || cfg.logurl;
       exports.enabled = true;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message