quickfix: expose TrezorConnect to window for development builds

pull/167/head
Szymon Lesisz 6 years ago
parent 6a14601ddd
commit 233fac84b6

@ -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({

Loading…
Cancel
Save