mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 03:23:41 +02:00
Removed joining "/" between origin and cache root
This commit is contained in:
parent
a81fc8f212
commit
c6e4eab25f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue