pico come back

This commit is contained in:
Pagwin 2025-09-04 16:18:19 -04:00
parent 7c48cab31c
commit 6c779d54f2

View file

@ -9,10 +9,10 @@ self.addEventListener("fetch", event =>{
const resp3 = resp2.clone(); const resp3 = resp2.clone();
const body = await resp2.text(); const body = await resp2.text();
const url = new URL(event.request.url); const url = new URL(event.request.url);
console.log(url.pathname);
if(url.pathname.endsWith("light-dark-toggle")){ if(url.pathname.endsWith("light-dark-toggle")){
return await handle_redirect(event.request); return await handle_redirect(event.request);
} }
else if(url.hostname !== "pagwin.xyz") return;
else { else {
return await handle_html(event.request, resp3, body); return await handle_html(event.request, resp3, body);
} }