summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 13:44:56 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 13:44:56 +0300
commit660a1bbe011fef5f0fa6bb0af43521fed7598cc7 (patch)
treef31ee123db91e479b93a6d086fd78de2ecfae014 /js/common.js
parentbb4e4282f46824308aebc2eaeac29fa29f8687ad (diff)
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible) * show net/log indicators in prefs
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/common.js b/js/common.js
index 1c9a0453c..e88b62602 100755
--- a/js/common.js
+++ b/js/common.js
@@ -155,7 +155,7 @@ const xhr = {
reject(error);
},
load: function(data, ioargs) {
- //console.log('xhr.post', '<<<', data, ioargs);
+ console.log('xhr.post', '<<<', ioargs.xhr);
if (complete != undefined)
complete(data, ioargs.xhr);
@@ -179,6 +179,9 @@ const xhr = {
console.log('xhr.json', '<<<', obj);
+ if (obj && typeof App != "undefined")
+ App.handleRpcJson(obj);
+
if (complete != undefined) complete(obj);
resolve(obj);