parent
2236c0da31
commit
16c8651cdb
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export function register(config?: Config) {
|
|||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
const swUrl = `./sw.js`;
|
||||
const swUrl = new URL('sw.js', publicUrl.href).href;
|
||||
|
||||
if (isLocalhost) {
|
||||
// This is running on localhost. Let's check if a service worker still exists or not.
|
||||
|
|
Loading…
Reference in a new issue