Merge pull request #286 from lbryio/improvement/api-method
Add method name to the API query string
This commit is contained in:
commit
8245b05574
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1052,7 +1052,7 @@ function apiCall(method, params, resolve, reject) {
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
return fetch(Lbry.daemonConnectionString, options).then(checkAndParse).then(response => {
|
return fetch(Lbry.daemonConnectionString + '?m=' + method, options).then(checkAndParse).then(response => {
|
||||||
const error = response.error || response.result && response.result.error;
|
const error = response.error || response.result && response.result.error;
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
|
@ -191,7 +191,7 @@ export function apiCall(method: string, params: ?{}, resolve: Function, reject:
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
return fetch(Lbry.daemonConnectionString, options)
|
return fetch(Lbry.daemonConnectionString + '?m=' + method, options)
|
||||||
.then(checkAndParse)
|
.then(checkAndParse)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const error = response.error || (response.result && response.result.error);
|
const error = response.error || (response.result && response.result.error);
|
||||||
|
|
Loading…
Reference in a new issue