Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED12810372 for ; Wed, 14 Jan 2015 23:10:28 +0000 (UTC) Received: (qmail 98180 invoked by uid 500); 14 Jan 2015 23:10:30 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 98159 invoked by uid 500); 14 Jan 2015 23:10:30 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 98150 invoked by uid 99); 14 Jan 2015 23:10:30 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2015 23:10:30 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 32E16A42FD3; Wed, 14 Jan 2015 23:10:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Wed Jan 14 15:10:20 2015 -0800 Committer: Jesse MacFadyen 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