summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 16:07:52 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 16:07:52 +0300
commitd3d3bceec9bc2307b0967b3ef6a5486a648323ae (patch)
treeaba1830beb6eda9fee2c35e4a114f11d13a42797 /js
parentfe1feca009876772e3dbcacd69d9da06e0c399ec (diff)
xhr.json: properly pass failure callback to xhr.post()
Diffstat (limited to 'js')
-rwxr-xr-xjs/common.js2
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 {