pico come back
This commit is contained in:
parent
7c48cab31c
commit
6c779d54f2
1 changed files with 1 additions and 1 deletions
|
@ -9,10 +9,10 @@ self.addEventListener("fetch", event =>{
|
|||
const resp3 = resp2.clone();
|
||||
const body = await resp2.text();
|
||||
const url = new URL(event.request.url);
|
||||
console.log(url.pathname);
|
||||
if(url.pathname.endsWith("light-dark-toggle")){
|
||||
return await handle_redirect(event.request);
|
||||
}
|
||||
else if(url.hostname !== "pagwin.xyz") return;
|
||||
else {
|
||||
return await handle_html(event.request, resp3, body);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue