From 87e71a3e13ea94367efbc2d9ecdf3f358d7c675f Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 3 Apr 2020 10:53:35 +0200 Subject: [PATCH] update connectSrc --- src/actions/TrezorConnectActions.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/actions/TrezorConnectActions.js b/src/actions/TrezorConnectActions.js index 9279ceba..fc6632d3 100644 --- a/src/actions/TrezorConnectActions.js +++ b/src/actions/TrezorConnectActions.js @@ -120,16 +120,15 @@ export const init = (): AsyncAction => async ( dispatch(event); }); + let connectSrc; if (buildUtils.isDev()) { - // eslint-disable-next-line - window.__TREZOR_CONNECT_SRC = - typeof LOCAL === 'string' ? LOCAL : 'https://connect.corp.sldev.cz/develop/'; // eslint-disable-line no-underscore-dangle - // window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://localhost:8088/'; // eslint-disable-line no-underscore-dangle + connectSrc = typeof LOCAL === 'string' ? LOCAL : 'https://connect.corp.sldev.cz/develop/'; window.TrezorConnect = TrezorConnect; } try { await TrezorConnect.init({ + connectSrc, transportReconnect: true, debug: false, popup: false,