MyCrypto/common/index.tsx
William O'Beirne f6410646c0 Fix iOS Safari with Polyfills (#599)
* Add polyfills, error text to error screen.

* copy update to warn users about ensuring that they only send us non-sensitive info
2017-12-15 18:53:27 -08:00

31 lines
948 B
TypeScript

// Application styles must come first in order, to allow for overrides
import 'assets/styles/etherwallet-master.less';
import 'font-awesome/scss/font-awesome.scss';
import 'sass/styles.scss';
import 'babel-polyfill';
import 'whatwg-fetch';
import React from 'react';
import { render } from 'react-dom';
import Root from './Root';
import createHistory from 'history/createBrowserHistory';
import { configuredStore } from './store';
import consoleAdvertisement from './utils/consoleAdvertisement';
const history = createHistory();
const appEl = document.getElementById('app');
render(<Root store={configuredStore} history={history} />, appEl);
if (module.hot) {
module.hot.accept('reducers', () => configuredStore.replaceReducer(require('reducers')));
module.hot.accept('./Root', () => {
render(<Root store={configuredStore} history={history} />, appEl);
});
}
if (process.env.NODE_ENV === 'production') {
consoleAdvertisement();
}