Skip to content

Commit 3c4928e

Browse files
authored
Fix PWA
1 parent cd294a6 commit 3c4928e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import './index.css';
44
import App from './App';
55
import store from './store';
66
import { Provider } from 'react-redux';
7-
import * as serviceWorker from './serviceWorker';
7+
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
88

99
ReactDOM.render(
1010
<React.StrictMode>
@@ -18,4 +18,4 @@ ReactDOM.render(
1818
// If you want your app to work offline and load faster, you can change
1919
// unregister() to register() below. Note this comes with some pitfalls.
2020
// Learn more about service workers: https://bit.ly/CRA-PWA
21-
serviceWorker.register();
21+
serviceWorkerRegistration.register();

0 commit comments

Comments
 (0)