From 18705ee495be937150e57d67c81a5d135b991045 Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Fri, 11 Oct 2019 03:19:31 +0500 Subject: [PATCH] Register the SW on app start --- src/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 8ff4f13..7ef674f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -17,7 +17,5 @@ ReactDOM.render( document.getElementById("root") ); -// 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(); +// See https://bit.ly/CRA-PWA for the list of possible problems. +serviceWorker.register();