Skip to content

Commit

Permalink
Merge pull request #44 from secretin/noserviceworker_on_electron
Browse files Browse the repository at this point in the history
Electron doesn't need service worker stuff
  • Loading branch information
agix authored Jun 15, 2017
2 parents d64ee1e + 60dcf80 commit 57dd2ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import './index.css';
const rootEl = document.getElementById('root');

ReactDOM.render(<App />, rootEl);
registerServiceWorker();
if (typeof window.process === 'undefined') {
registerServiceWorker();
}

if (module.hot) {
module.hot.accept('components/App', () => {
Expand Down

0 comments on commit 57dd2ce

Please sign in to comment.