handling situation I didn't tell claude about
This commit is contained in:
parent
086f13f413
commit
a75cab7e70
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ self.addEventListener('fetch', event => {
|
||||||
const url = new URL(event.request.url);
|
const url = new URL(event.request.url);
|
||||||
|
|
||||||
// Only handle /set-theme endpoint
|
// Only handle /set-theme endpoint
|
||||||
if (url.pathname === '/set-theme') {
|
if (url.pathname.endsWith('/set-theme')) {
|
||||||
event.respondWith(handleThemeToggle(event.request));
|
event.respondWith(handleThemeToggle(event.request));
|
||||||
}
|
}
|
||||||
// For all other requests, let the browser handle them normally
|
// For all other requests, let the browser handle them normally
|
||||||
|
|
Loading…
Reference in a new issue