diff --git a/src/renderer/index.js b/src/renderer/index.js index 98f9a40c2..0d6847438 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -17,7 +17,7 @@ import { doOpenModal, doHideModal, } from 'redux/actions/app'; -import { doToast, doBlackListedOutpointsSubscribe, isURIValid } from 'lbry-redux'; +import { doToast, doBlackListedOutpointsSubscribe, isURIValid, setSearchApi } from 'lbry-redux'; import { doNavigate } from 'redux/actions/navigation'; import { doDownloadLanguages, doUpdateIsNightAsync } from 'redux/actions/settings'; import { doAuthenticate, Lbryio, rewards } from 'lbryinc'; @@ -37,6 +37,10 @@ if (process.env.LBRY_API_URL) { Lbryio.setLocalApi(process.env.LBRY_API_URL); } +if (process.env.SEARCH_API_URL) { + setSearchApi(process.env.SEARCH_API_URL); +} + // We need to override Lbryio for getting/setting the authToken // We interect with ipcRenderer to get the auth key from a users keyring // We keep a local variable for authToken beacuse `ipcRenderer.send` does not