mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 20:07:36 +00:00
Fix the logic behind CPURLConnection's _isLocalFileConnection
This commit is contained in:
1 parent
a1e24a3f95
commit
58c6db0a8f
1 file changed
+1
-1
@@ -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:"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user