using test api url
This commit is contained in:
parent
437260f3da
commit
416f27c945
2 changed files with 4 additions and 4 deletions
4
dist/bundle.js
vendored
4
dist/bundle.js
vendored
|
@ -1135,7 +1135,7 @@ var Lbryio = {
|
||||||
authenticationPromise: null,
|
authenticationPromise: null,
|
||||||
exchangePromise: null,
|
exchangePromise: null,
|
||||||
exchangeLastFetched: null,
|
exchangeLastFetched: null,
|
||||||
CONNECTION_STRING: 'https://api.lbry.com/'
|
CONNECTION_STRING: 'https://api.testnet.lbry.tech/'
|
||||||
};
|
};
|
||||||
|
|
||||||
var EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
var EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
||||||
|
@ -1293,7 +1293,7 @@ Lbryio.authenticate = function () {
|
||||||
|
|
||||||
Lbryio.authToken = response.auth_token;
|
Lbryio.authToken = response.auth_token;
|
||||||
res(response);
|
res(response);
|
||||||
}).catch(function () {
|
}).catch(function (error) {
|
||||||
return rej();
|
return rej();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@ const Lbryio = {
|
||||||
authenticationPromise: null,
|
authenticationPromise: null,
|
||||||
exchangePromise: null,
|
exchangePromise: null,
|
||||||
exchangeLastFetched: null,
|
exchangeLastFetched: null,
|
||||||
CONNECTION_STRING: 'https://api.lbry.com/',
|
CONNECTION_STRING: 'https://api.testnet.lbry.tech/',
|
||||||
};
|
};
|
||||||
|
|
||||||
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
||||||
|
@ -160,7 +160,7 @@ Lbryio.authenticate = () => {
|
||||||
Lbryio.authToken = response.auth_token;
|
Lbryio.authToken = response.auth_token;
|
||||||
res(response);
|
res(response);
|
||||||
})
|
})
|
||||||
.catch(() => rej());
|
.catch(error => rej());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue