Skip to content

Commit

Permalink
fix(pwa) - enable service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
vnglst committed Apr 5, 2019
1 parent 762cbe3 commit 57b5ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -35,7 +35,7 @@ ReactDOM.render(
);

preventDoubleTapZoom({ delay: 500 });
unregister();
register();

function initializeAnalyticsOnProduction() {
if (process.env.NODE_ENV === "production") {
Expand Down

0 comments on commit 57b5ebc

Please sign in to comment.