added get call to lbry.js since proxy-polyfill doesn't seem to actually work

This commit is contained in:
Akinwale Ariwodola 2018-03-18 15:38:52 +01:00
parent b081f465bb
commit 4c465ffe5f
2 changed files with 21 additions and 0 deletions

View file

@ -1331,6 +1331,15 @@ Lbry.claim_list_mine = function () {
});
};
Lbry.get = function () {
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return new Promise(function (resolve, reject) {
apiCall('get', params, function (streamInfo) {
resolve(streamInfo);
}, reject);
});
};
Lbry.resolve = function () {
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return new Promise(function (resolve, reject) {

View file

@ -294,6 +294,18 @@ Lbry.claim_list_mine = (params = {}) =>
reject
);
});
Lbry.get = (params = {}) =>
new Promise((resolve, reject) => {
apiCall(
'get',
params,
streamInfo => {
resolve(streamInfo)
},
reject
);
});
Lbry.resolve = (params = {}) =>
new Promise((resolve, reject) => {