File size: 813 Bytes
181e22f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import 'webrtc-adapter';
import { Provider } from 'react-redux';
import ReactGA from 'react-ga';
import {
  BrowserRouter as Router,
} from 'react-router-dom';
import App from './components/App';
import configureStore from './store/configureStore';
import configureWS from './actions/configureWS';

import './common/global.css';

const store = configureStore();

configureWS(store.dispatch);

// Initialize Google Analytics
if (process.env.NODE_ENV === 'production') {
  ReactGA.initialize('UA-131382726-2');
  ReactGA.pageview(window.location.pathname + window.location.search);
}

ReactDOM.render(
  <Provider
    store={store}
  >
    <Router>
      <App />
    </Router>
  </Provider>,
  document.getElementById('root'),
);