Skip to content

Commit

Permalink
Do not load service worker in localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Dec 25, 2021
1 parent d70a734 commit a153204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function App() {
return (
<AppContext.Provider value={dispatchToApp}>
<div className={`app theme-${app.theme}`}>
{navigator.serviceWorker ? (
{navigator.serviceWorker && window.location.port !== '8080' ? (
<UpdateNotification />
) : null}
<AppHeader theme={app.theme} />
Expand Down

0 comments on commit a153204

Please sign in to comment.