Add lbry apis to config
This commit is contained in:
parent
404f0dc195
commit
6485e1af82
2 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@ const config = {
|
|||
WEBPACK_ELECTRON_PORT: process.env.WEBPACK_ELECTRON_PORT,
|
||||
WEB_SERVER_PORT: process.env.WEB_SERVER_PORT,
|
||||
LBRY_WEB_API: process.env.LBRY_WEB_API, //api.lbry.tv',
|
||||
LBRY_API_URL: process.env.LBRY_API_URL, //api.lbry.com',
|
||||
LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //cdn.lbryplayer.xyz',
|
||||
LBRY_WEB_BUFFER_API: process.env.LBRY_WEB_BUFFER_API,
|
||||
WELCOME_VERSION: process.env.WELCOME_VERSION,
|
||||
|
|
|
@ -35,7 +35,7 @@ import {
|
|||
doAuthTokenRefresh,
|
||||
} from 'util/saved-passwords';
|
||||
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
|
||||
import { LBRY_WEB_API, DEFAULT_LANGUAGE } from 'config';
|
||||
import { LBRY_WEB_API, DEFAULT_LANGUAGE, LBRY_API_URL } from 'config';
|
||||
|
||||
// Import our app styles
|
||||
// If a style is not necessary for the initial page load, it should be removed from `all.scss`
|
||||
|
@ -98,8 +98,8 @@ const { autoUpdater } = remote.require('electron-updater');
|
|||
autoUpdater.logger = remote.require('electron-log');
|
||||
// @endif
|
||||
|
||||
if (process.env.LBRY_API_URL) {
|
||||
Lbryio.setLocalApi(process.env.LBRY_API_URL);
|
||||
if (LBRY_API_URL) {
|
||||
Lbryio.setLocalApi(LBRY_API_URL);
|
||||
}
|
||||
|
||||
if (process.env.SEARCH_API_URL) {
|
||||
|
|
Loading…
Reference in a new issue