From 57b5ebc6c600b80d47d02739eb76338cada51349 Mon Sep 17 00:00:00 2001 From: Koen van Gilst Date: Fri, 5 Apr 2019 21:41:56 +0200 Subject: [PATCH] fix(pwa) - enable service worker --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index d737d41..aa8c3a5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,7 +11,7 @@ import { audioMiddleware } from "src/finding-words/redux/audio-middleware"; import { IStoreState } from "src/finding-words/types"; import rootReducer from "src/shared/redux/root-reducer"; import "./index.css"; -import { unregister } from "./registerServiceWorker"; +import register from "./registerServiceWorker"; import { BugsnagErrorBoundary } from "./shared/utils/bugsnag"; const composeEnhancers = @@ -35,7 +35,7 @@ ReactDOM.render( ); preventDoubleTapZoom({ delay: 500 }); -unregister(); +register(); function initializeAnalyticsOnProduction() { if (process.env.NODE_ENV === "production") {