From 33b80fe2c82cc03d484732c31aebad2e42f771a5 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 15 Jun 2020 11:18:29 -0500 Subject: [PATCH] re-enable service worker Password has been turned off on the website, so we can enable this again. --- src/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 7e05631b..2cedface 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,7 +10,7 @@ import { applyMiddleware, createStore } from 'redux'; import { createLogger } from 'redux-logger'; import createSagaMiddleware from 'redux-saga'; import './index.scss'; -// import { success, update } from './actions/service-worker'; +import { success, update } from './actions/service-worker'; import App from './components/App'; import NotificationStack from './components/NotificationStack'; import rootReducer from './reducers'; @@ -60,8 +60,7 @@ ReactDOM.render( // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. // Learn more about service workers: https://bit.ly/CRA-PWA -serviceWorker.unregister(); -// serviceWorker.register({ -// onUpdate: (r) => store.dispatch(update(r)), -// onSuccess: (r) => store.dispatch(success(r)), -// }); +serviceWorker.register({ + onUpdate: (r) => store.dispatch(update(r)), + onSuccess: (r) => store.dispatch(success(r)), +});