summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/app.js b/www/js/app.js
index ee04948f..45d8d02f 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -2098,10 +2098,10 @@ angular.module('zmApp', [
if (arguments[0].timeout) options.timeout = arguments[0].timeout;
// console.log ("**** -->"+method+"<-- using native HTTP with:"+encodeURI(url)+" payload:"+JSON.stringify(options));
- // nvr.debug ("cordova: got url "+url);
- // nvr.debug ("cordova: url after encode "+encodeURI(url));
+ nvr.debug ("cordova: got url "+url);
+ nvr.debug ("cordova: url after encode "+encodeURI(url));
//cordova.plugin.http.sendRequest(encodeURI(url), options,
- cordova.plugin.http.sendRequest(url, options,
+ cordova.plugin.http.sendRequest(encodeURI(url), options,
function (succ) {
// automatic JSON parse if no responseType: text
// fall back to text if JSON parse fails too
@@ -2142,7 +2142,7 @@ angular.module('zmApp', [
},
function (err) {
- nvr.debug("*** Inside native HTTP error for url:"+err.url);
+ nvr.debug("*** Inside native HTTP error for url:"+JSON.stringify(url));
if (err.status == 401 && !options.skipIntercept && nvr.apiValid) {
if (err.error && err.error.indexOf("API is disabled for user") != -1) {
nvr.apiValid = false;