diff --git a/src/actions/TrezorConnectActions.js b/src/actions/TrezorConnectActions.js index d685f954..e4560b76 100644 --- a/src/actions/TrezorConnectActions.js +++ b/src/actions/TrezorConnectActions.js @@ -82,6 +82,8 @@ export type TrezorConnectAction = { state: ?string, }; +declare var LOCAL: ?string; + export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise => { // set listeners TrezorConnect.on(DEVICE_EVENT, (event: DeviceMessage): void => { @@ -120,7 +122,7 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS }); }); - window.__TREZOR_CONNECT_SRC = typeof window.LOCAL === 'string' ? window.LOCAL : 'https://sisyfos.trezor.io/connect/'; // eslint-disable-line no-underscore-dangle + 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 try { diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index 59b9280f..8236eecd 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -11,6 +11,8 @@ import { connect } from 'react-redux'; import colors from 'config/colors'; import * as LogActions from 'actions/LogActions'; +declare var COMMITHASH: string; + type Props = { opened: boolean, toggle: () => any, @@ -37,7 +39,7 @@ const Copy = styled.div` const Footer = ({ opened, toggle }: Props) => ( - © {getYear(new Date())} + © {getYear(new Date())} SatoshiLabs Terms { opened ? 'Hide Log' : 'Show Log' } diff --git a/src/flowtype/index.js b/src/flowtype/index.js index f1349134..44bd5556 100644 --- a/src/flowtype/index.js +++ b/src/flowtype/index.js @@ -174,6 +174,3 @@ export type PromiseAction = ReduxPromiseAction; export type Store = ReduxStore; export type GetState = () => State; - -declare var LOCAL: string; -declare var COMMITHASH: string; \ No newline at end of file