Skip to content

Commit

Permalink
WIP disable service worker by default (facebook#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Jan 16, 2018
1 parent 19e0bb1 commit acdd348
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/react-scripts/template/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import registerServiceWorker, {
unregister as unregisterServiceWorker,
} from './registerServiceWorker';

ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();

// By default we make sure that no service worker is registered. If you would
// like to enable service worker uncomment the call to registerServiceWorker()
// and comment out the call to unregisterServiceWorker().
// See http://bit.ly/2vJdu84 for more information.

// registerServiceWorker();
unregisterServiceWorker();

0 comments on commit acdd348

Please sign in to comment.