Fix the logic behind CPURLConnection's _isLocalFileConnection

This commit is contained in:
Ross Boucher committed 2009-12-20 13:12:29 -05:00
1 parent a1e24a3f95
commit 58c6db0a8f
1 file changed
+1 -1
+1 -1
View File
@@ -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:"));