add setLocalApi method

This commit is contained in:
Sean Yesmunt 2018-12-03 12:51:31 -05:00
parent 64068e13f9
commit 2ffed3c768

View file

@ -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')));
}