dev-12140843

This commit is contained in:
Victor Westerlund 2020-12-14 08:43:11 +01:00
parent c6e4eab25f
commit 60890eae40

View file

@ -64,7 +64,7 @@ self.addEventListener("fetch", event => {
const pattern = new Request(`${location.origin}${root}assets/img/pattern.php`); const pattern = new Request(`${location.origin}${root}assets/img/pattern.php`);
event.respondWith( event.respondWith(
fetch(pattern).catch(() => { fetch(pattern).catch(() => {
return caches.match(event.request); return caches.match(root + "pattern.gif");
}) })
); );
return; return;