From 233fac84b6dc6533dc15d8f2f899b88e62fb1d6d Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 10 Oct 2018 15:46:42 +0200 Subject: [PATCH] quickfix: expose TrezorConnect to window for development builds --- src/actions/TrezorConnectActions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actions/TrezorConnectActions.js b/src/actions/TrezorConnectActions.js index e4560b76..d25770c1 100644 --- a/src/actions/TrezorConnectActions.js +++ b/src/actions/TrezorConnectActions.js @@ -124,6 +124,9 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://sisyfos.trezor.io/connect/'; // eslint-disable-line no-underscore-dangle // window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://connect.trezor.io/5/'; // eslint-disable-line no-underscore-dangle + if (process.env.BUILD === 'development' || process.env.NODE_ENV === 'development') { + window.TrezorConnect = TrezorConnect; + } try { await TrezorConnect.init({