mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-03 13:22:35 +00:00
27 lines
544 B
JavaScript
27 lines
544 B
JavaScript
/* @flow */
|
|
'use strict';
|
|
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import store from './store';
|
|
import router from './router';
|
|
import { onBeforeUnload } from './actions/WalletActions';
|
|
|
|
import Raven from 'raven-js';
|
|
|
|
import styles from '../styles/index.less';
|
|
|
|
|
|
Raven.config('https://497392c3ff6e46dc9e54eef123979378@sentry.io/294339').install();
|
|
|
|
render(
|
|
router,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
window.onbeforeunload = () => {
|
|
store.dispatch( onBeforeUnload() );
|
|
}
|
|
|
|
// workaround
|
|
// yarn add web3@^0.19.0
|