You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/04/25 06:43:50 UTC
[cordova-electron] branch master updated: Update the config.xml
path in the XHR load eventListener (#42)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git
The following commit(s) were added to refs/heads/master by this push:
new fe51a86 Update the config.xml path in the XHR load eventListener (#42)
fe51a86 is described below
commit fe51a86bec855393b0fbea1d5c595c4b6895ed87
Author: Jack Van Zyl <ja...@icloud.com>
AuthorDate: Thu Apr 25 08:43:46 2019 +0200
Update the config.xml path in the XHR load eventListener (#42)
---
cordova-js-src/confighelper.js | 2 +-
cordova-lib/cordova.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cordova-js-src/confighelper.js b/cordova-js-src/confighelper.js
index 017618f..10ee627 100644
--- a/cordova-js-src/confighelper.js
+++ b/cordova-js-src/confighelper.js
@@ -64,7 +64,7 @@ function readConfig (success, error) {
xhr.addEventListener('load', xhrStatusChangeHandler);
try {
- xhr.open('get', '/config.xml', true);
+ xhr.open('get', 'config.xml', true);
xhr.send();
} catch (e) {
fail('[Electron][cordova.js][readConfig] Could not XHR config.xml: ' + JSON.stringify(e));
diff --git a/cordova-lib/cordova.js b/cordova-lib/cordova.js
index d772bc0..d753cb9 100644
--- a/cordova-lib/cordova.js
+++ b/cordova-lib/cordova.js
@@ -882,7 +882,7 @@ function readConfig (success, error) {
xhr.addEventListener('load', xhrStatusChangeHandler);
try {
- xhr.open('get', '/config.xml', true);
+ xhr.open('get', 'config.xml', true);
xhr.send();
} catch (e) {
fail('[Electron][cordova.js][readConfig] Could not XHR config.xml: ' + JSON.stringify(e));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org