Add method name to the API query string

This commit is contained in:
Andrey Beletsky 2020-03-12 15:28:47 +07:00
parent 0ce0cf1de3
commit a097c14c31

View file

@ -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(response => {
const error = response.error || (response.result && response.result.error);