2019-09-17 14:30:26 +09:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import App from './App';
|
|
|
|
import * as serviceWorker from './serviceWorker';
|
|
|
|
import {FullScreenSuspense} from './util/suspense';
|
|
|
|
import './util/i18n';
|
2019-08-03 13:36:29 +09:00
|
|
|
|
2019-08-14 18:46:57 +09:00
|
|
|
const Container = () => (
|
|
|
|
<FullScreenSuspense>
|
2019-08-03 13:36:29 +09:00
|
|
|
<App />
|
2019-08-14 18:46:57 +09:00
|
|
|
</FullScreenSuspense>
|
2019-09-17 14:30:26 +09:00
|
|
|
);
|
2019-08-01 01:10:09 +09:00
|
|
|
|
2019-09-17 14:30:26 +09:00
|
|
|
ReactDOM.render(<Container />, document.getElementById('root'));
|
2019-08-14 18:46:57 +09:00
|
|
|
|
|
|
|
// register Google Analytics
|
2019-08-07 17:42:07 +09:00
|
|
|
if (process.env.NODE_ENV !== 'development') {
|
|
|
|
import('react-ga').then((ReactGA) => {
|
2019-09-17 14:30:26 +09:00
|
|
|
ReactGA.initialize('UA-28919359-15');
|
|
|
|
ReactGA.pageview(window.location.pathname + window.location.search);
|
|
|
|
});
|
2019-08-07 17:42:07 +09:00
|
|
|
}
|
2019-07-31 14:17:32 +09:00
|
|
|
|
2019-09-17 14:30:26 +09:00
|
|
|
serviceWorker.register({});
|