From 58c6db0a8f9a1ea001253e43f732a75a8d0b8bb2 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Sun, 20 Dec 2009 13:12:29 -0500 Subject: [PATCH] Fix the logic behind CPURLConnection's _isLocalFileConnection --- Foundation/CPURLConnection.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/CPURLConnection.j b/Foundation/CPURLConnection.j index dfe8cedbf..7a567998f 100644 --- a/Foundation/CPURLConnection.j +++ b/Foundation/CPURLConnection.j @@ -159,7 +159,7 @@ var CPURLConnectionDelegate = nil; // Browsers use "file:", Titanium uses "app:" _isLocalFileConnection = scheme === "file" || - ((scheme !== "http" || scheme !== "https:") && + ((scheme === "http" || scheme === "https:") && window.location && (window.location.protocol === "file:" || window.location.protocol === "app:"));