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.
25 lines
604 B
25 lines
604 B
/* @flow */
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { Normalize } from 'styled-normalize';
|
|
import BaseStyles from 'support/styles';
|
|
import App from 'views/index';
|
|
|
|
const root: ?HTMLElement = document.getElementById('trezor-wallet-root');
|
|
if (root) {
|
|
render(
|
|
<React.Fragment>
|
|
<Normalize />
|
|
<BaseStyles />
|
|
<App />
|
|
</React.Fragment>,
|
|
root,
|
|
);
|
|
}
|
|
|
|
window.onbeforeunload = () => {
|
|
// $FlowIssue: render empty component
|
|
render(null, root);
|
|
};
|
|
|
|
// Application life cycle starts in services/WalletService.js
|