You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/09/25 18:50:12 UTC
js commit: [ios] Fix XHR exec bridge not working for non-file host
pages.
Updated Branches:
refs/heads/master 34c8aa242 -> de45f5d2a
[ios] Fix XHR exec bridge not working for non-file host pages.
Fixes issue https://issues.apache.org/jira/browse/CB-1525
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/de45f5d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/de45f5d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/de45f5d2
Branch: refs/heads/master
Commit: de45f5d2a70ce90b8e2219f5874e945db8337e55
Parents: 34c8aa2
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Sep 25 12:49:27 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Sep 25 12:49:27 2012 -0400
----------------------------------------------------------------------
lib/ios/exec.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/de45f5d2/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 5d91540..1759ecc 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -116,9 +116,9 @@ function iOSExec() {
if (cordova.commandQueue.length == 1 && !cordova.commandQueueFlushing) {
if (bridgeMode) {
execXhr = execXhr || new XMLHttpRequest();
- // Changeing this to a GET will make the XHR reach the URIProtocol on 4.2.
+ // Changing this to a GET will make the XHR reach the URIProtocol on 4.2.
// For some reason it still doesn't work though...
- execXhr.open('HEAD', "file:///!gap_exec", true);
+ execXhr.open('HEAD', "/!gap_exec", true);
execXhr.setRequestHeader('vc', cordova.iOSVCAddr);
if (shouldBundleCommandJson()) {
execXhr.setRequestHeader('cmds', nativecomm());