turn on sw for pwa
This commit is contained in:
parent
b0664cb38c
commit
b1cbbe9e30
|
@ -26,7 +26,7 @@ ReactDOM.render(
|
||||||
// If you want your app to work offline and load faster, you can change
|
// If you want your app to work offline and load faster, you can change
|
||||||
// unregister() to register() below. Note this comes with some pitfalls.
|
// unregister() to register() below. Note this comes with some pitfalls.
|
||||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||||
serviceWorker.unregister();
|
serviceWorker.register();
|
||||||
// serviceWorker.register({
|
// serviceWorker.register({
|
||||||
// onUpdate: registration => {
|
// onUpdate: registration => {
|
||||||
// const ready = window.confirm("New version available! Update?");
|
// const ready = window.confirm("New version available! Update?");
|
||||||
|
|
Loading…
Reference in New Issue