mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-12 21:55:56 +00:00
xhr.json: properly pass failure callback to xhr.post()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user