summaryrefslogtreecommitdiff
path: root/js/common.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:08:01 +0300
commit8b743f7249fbe7bd464f2b839638aedc247f854e (patch)
tree69ad8d636c7c87d2b0f13b036b696ab5493879df /js/common.js
parent9b5d199ad9b7234d1067f85137a671edd71e08ca (diff)
xhr.json: properly pass failure callback to xhr.post()
Diffstat (limited to 'js/common.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 {