return
This commit is contained in:
parent
12b592f265
commit
8fc543f009
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ self.addEventListener("fetch", event =>{
|
||||||
event.respondWith((async ()=>{
|
event.respondWith((async ()=>{
|
||||||
const resp = await fetch(event.request);
|
const resp = await fetch(event.request);
|
||||||
const body = await resp.text();
|
const body = await resp.text();
|
||||||
new Response(body.replace("<body>", '<body class="toggled">'), {
|
return new Response(body.replace("<body>", '<body class="toggled">'), {
|
||||||
...resp
|
...resp
|
||||||
});
|
});
|
||||||
})());
|
})());
|
||||||
|
|
Loading…
Reference in a new issue