fix ff api url issue (#289)

This commit is contained in:
Keith Ingram
2020-03-09 20:24:45 +13:00
committed by GitHub
parent 9fce0e2d51
commit 5e86263fe3
+1 -1
View File
@@ -38,7 +38,7 @@ export class Settings implements SettingsStruct {
this.#emitter = new EventEmitter();
this.#apiUrl = settings.apiUrl || process.env.WS_URL || ENDPOINT_DEFAULT;
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || process.env.WS_URL || ENDPOINT_DEFAULT;
this.#camera = settings.camera || CAMERA_DEFAULT;
this.#ledgerConn = settings.ledgerConn || LEDGER_CONN_DEFAULT;
this.#i18nLang = settings.i18nLang || LANGUAGE_DEFAULT;