mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
disable serviceWorker
This is just temporary, but making it work is not a priority right now.
This commit is contained in:
committed by
David Lechner
parent
6b3d1464bb
commit
ff1747df51
+6
-5
@@ -10,7 +10,7 @@ import { createLogger } from 'redux-logger';
|
||||
import { createEpicMiddleware } from 'redux-observable';
|
||||
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 rootEpic from './epics';
|
||||
@@ -57,7 +57,8 @@ 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.register({
|
||||
onUpdate: (r) => store.dispatch(update(r)),
|
||||
onSuccess: (r) => store.dispatch(success(r)),
|
||||
});
|
||||
serviceWorker.unregister();
|
||||
// serviceWorker.register({
|
||||
// onUpdate: (r) => store.dispatch(update(r)),
|
||||
// onSuccess: (r) => store.dispatch(success(r)),
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user