diff options
Diffstat (limited to 'js/common.js')
-rwxr-xr-x | js/common.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/common.js b/js/common.js index 1299a0c64..b972f2376 100755 --- a/js/common.js +++ b/js/common.js @@ -186,7 +186,7 @@ const xhr = { }, json: function(url, params = {}, complete = undefined, failed = undefined) { return new Promise((resolve, reject) => - this.post(url, params).then((data) => { + this.post(url, params, null, failed).then((data) => { let obj = null; try { @@ -198,6 +198,7 @@ const xhr = { failed(e); reject(e); + return; } console.log('xhr.json', '<<<', obj, (new Date().getTime() - xhr._ts) + " ms"); |