From 60dcf80a12ae3b002a7ee5e3be7af149532fc71c Mon Sep 17 00:00:00 2001 From: agix Date: Thu, 15 Jun 2017 11:14:19 +0200 Subject: [PATCH] Electron doesn't need service worker stuff --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0065f25..e5d8115 100644 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,9 @@ import './index.css'; const rootEl = document.getElementById('root'); ReactDOM.render(, rootEl); -registerServiceWorker(); +if (typeof window.process === 'undefined') { + registerServiceWorker(); +} if (module.hot) { module.hot.accept('components/App', () => {