mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-15 12:59:09 +00:00
bf7527bd09
Disable whole react app to prevent future action processing. Fix: #116
18 lines
431 B
JavaScript
18 lines
431 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('root');
|
|
if (root) {
|
|
baseStyles();
|
|
render(<App />, root);
|
|
}
|
|
|
|
window.onbeforeunload = () => {
|
|
// $FlowIssue: render empty component
|
|
render(null, root);
|
|
};
|
|
|
|
// Application life cycle starts in services/WalletService.js
|