mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
563 B
23 lines
563 B
/* @flow */
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import baseStyles from '~/js/support/BaseStyles';
|
|
import store from './store';
|
|
import App from './router';
|
|
import { onBeforeUnload } from './actions/WalletActions';
|
|
import styles from '~/styles/index.less';
|
|
|
|
const root: ?HTMLElement = document.getElementById('root');
|
|
if (root) {
|
|
baseStyles();
|
|
render(
|
|
<App />,
|
|
root,
|
|
);
|
|
}
|
|
|
|
window.onbeforeunload = () => {
|
|
store.dispatch(onBeforeUnload());
|
|
};
|
|
|
|
// Application life cycle starts in ./services/WalletService.js
|