diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 16:07:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 16:08:01 +0300 |
commit | 8b743f7249fbe7bd464f2b839638aedc247f854e (patch) | |
tree | 69ad8d636c7c87d2b0f13b036b696ab5493879df /js/common.js | |
parent | 9b5d199ad9b7234d1067f85137a671edd71e08ca (diff) |
xhr.json: properly pass failure callback to xhr.post()
Diffstat (limited to 'js/common.js')
-rwxr-xr-x | js/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/common.js b/js/common.js index 0955ba6c8..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 { |