allow updating search api with env
This commit is contained in:
parent
0a5bda3d6c
commit
20e2d8c00a
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,7 @@ import {
|
||||||
doOpenModal,
|
doOpenModal,
|
||||||
doHideModal,
|
doHideModal,
|
||||||
} from 'redux/actions/app';
|
} 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 { doNavigate } from 'redux/actions/navigation';
|
||||||
import { doDownloadLanguages, doUpdateIsNightAsync } from 'redux/actions/settings';
|
import { doDownloadLanguages, doUpdateIsNightAsync } from 'redux/actions/settings';
|
||||||
import { doAuthenticate, Lbryio, rewards } from 'lbryinc';
|
import { doAuthenticate, Lbryio, rewards } from 'lbryinc';
|
||||||
|
@ -37,6 +37,10 @@ if (process.env.LBRY_API_URL) {
|
||||||
Lbryio.setLocalApi(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 need to override Lbryio for getting/setting the authToken
|
||||||
// We interect with ipcRenderer to get the auth key from a users keyring
|
// 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
|
// We keep a local variable for authToken beacuse `ipcRenderer.send` does not
|
||||||
|
|
Loading…
Add table
Reference in a new issue