diff --git a/public/sw.js b/public/sw.js index 4d53e2a..56faf1f 100644 --- a/public/sw.js +++ b/public/sw.js @@ -61,7 +61,7 @@ self.addEventListener("fetch", event => { // Get pattern.gif from generator. Fallback to cache on failure if(origin && url.pathname.endsWith("pattern.gif")) { - const pattern = new Request(`${location.origin}/${root}assets/img/pattern.php`); + const pattern = new Request(`${location.origin}${root}assets/img/pattern.php`); event.respondWith( fetch(pattern).catch(() => { return caches.match(event.request);