turn on sw for pwa

This commit is contained in:
lingdocs 2021-06-25 11:51:16 +04:00
parent b0664cb38c
commit b1cbbe9e30
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,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();
// serviceWorker.register({
// onUpdate: registration => {
// const ready = window.confirm("New version available! Update?");