Declaritively initializing service worker

This commit is contained in:
Jeff Avallone committed 2018-02-11 10:29:35 -05:00
1 parent fd5a8786d0
commit 6bf094a4c1
2 files changed
+19 -12

No files matched your search

+4 -1
View File
@@ -4,9 +4,12 @@ import ReactDOM from 'react-dom';
import App from '../../components/App';
import '../../style.css';
import '../../service-worker';
import { setupServiceWorker } from '../../service-worker';
import { setupGA } from '../../analytics';
if (process.env.NODE_ENV === 'production') {
setupServiceWorker();
}
setupGA();
ReactDOM.render(<App/>, document.getElementById('root'));