diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 16:07:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 16:07:52 +0300 |
commit | d3d3bceec9bc2307b0967b3ef6a5486a648323ae (patch) | |
tree | aba1830beb6eda9fee2c35e4a114f11d13a42797 /js | |
parent | fe1feca009876772e3dbcacd69d9da06e0c399ec (diff) |
xhr.json: properly pass failure callback to xhr.post()
Diffstat (limited to '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 { |