add setLocalApi method
This commit is contained in:
parent
64068e13f9
commit
2ffed3c768
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ Lbryio.setLocalApi = endpoint => {
|
|||
};
|
||||
|
||||
Lbryio.call = (resource, action, params = {}, method = 'get') => {
|
||||
console.log('call');
|
||||
if (!Lbryio.enabled) {
|
||||
return Promise.reject(new Error(__('LBRY internal API is disabled')));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue