From 416f27c945e14deef4c0f4915a72c7bd0f39775e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 29 Mar 2019 02:09:45 +0100 Subject: [PATCH] using test api url --- dist/bundle.js | 4 ++-- src/lbryio.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index fc6c985..641272a 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1135,7 +1135,7 @@ var Lbryio = { authenticationPromise: null, exchangePromise: null, exchangeLastFetched: null, - CONNECTION_STRING: 'https://api.lbry.com/' + CONNECTION_STRING: 'https://api.testnet.lbry.tech/' }; var EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000; @@ -1293,7 +1293,7 @@ Lbryio.authenticate = function () { Lbryio.authToken = response.auth_token; res(response); - }).catch(function () { + }).catch(function (error) { return rej(); }); }); diff --git a/src/lbryio.js b/src/lbryio.js index 59940fa..4776e35 100644 --- a/src/lbryio.js +++ b/src/lbryio.js @@ -7,7 +7,7 @@ const Lbryio = { authenticationPromise: null, exchangePromise: null, exchangeLastFetched: null, - CONNECTION_STRING: 'https://api.lbry.com/', + CONNECTION_STRING: 'https://api.testnet.lbry.tech/', }; const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000; @@ -160,7 +160,7 @@ Lbryio.authenticate = () => { Lbryio.authToken = response.auth_token; res(response); }) - .catch(() => rej()); + .catch(error => rej()); }); }); })