diff --git a/ui/js/lbry.js b/ui/js/lbry.js index 0d5e16997..4c0d511d4 100644 --- a/ui/js/lbry.js +++ b/ui/js/lbry.js @@ -641,8 +641,8 @@ lbry.claim_list_mine = function(params={}) { } lbry.resolve = function(params={}) { - const claimCacheKey = 'resolve_claim_cache3', - claimCache = getLocal(claimCacheKey, {}) + const claimCacheKey = 'resolve_claim_cache', + claimCache = getSession(claimCacheKey, {}) return new Promise((resolve, reject) => { if (!params.uri) { throw "Resolve has hacked cache on top of it that requires a URI" @@ -652,7 +652,7 @@ lbry.resolve = function(params={}) { } else { lbry.call('resolve', params, function(data) { claimCache[params.uri] = data; - setLocal(claimCacheKey, claimCache) + setSession(claimCacheKey, claimCache) resolve(data) }, reject) } diff --git a/ui/js/lbryio.js b/ui/js/lbryio.js index f37cccf62..20934bbbb 100644 --- a/ui/js/lbryio.js +++ b/ui/js/lbryio.js @@ -10,8 +10,7 @@ const lbryio = { enabled: false }; -// const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/'; -const CONNECTION_STRING = 'https://api.lbry.io/'; +const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/'; const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000; lbryio.getExchangeRates = function() {