Skip to content

Commit 7e39b0c

Browse files
chore(service-worker): fixed service worker
1 parent aa28884 commit 7e39b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serviceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function register(config) {
3232
}
3333

3434
window.addEventListener('load', () => {
35-
const swUrl = `./serviceWorker.js`
35+
const swUrl = `${process.env.PUBLIC_URL}/serviceWorker.js`
3636

3737
if (isLocalhost) {
3838
// This is running on localhost. Let's check if a service worker still exists or not.

0 commit comments

Comments
 (0)