1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-29 10:28:08 +00:00

quickfix: expose TrezorConnect to window for development builds

This commit is contained in:
Szymon Lesisz 2018-10-10 15:46:42 +02:00
parent 6a14601ddd
commit 233fac84b6

View File

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