mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:45:56 +00:00
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible) * show net/log indicators in prefs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user