1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-04 21:30:54 +00:00
trezor-wallet/src/index.js
2018-10-30 13:26:00 +01:00

18 lines
445 B
JavaScript

/* @flow */
import React from 'react';
import { render } from 'react-dom';
import baseStyles from 'support/styles';
import App from 'views/index';
const root: ?HTMLElement = document.getElementById('trezor-wallet-root');
if (root) {
baseStyles();
render(<App />, root);
}
window.onbeforeunload = () => {
// $FlowIssue: render empty component
render(null, root);
};
// Application life cycle starts in services/WalletService.js