forked from mystiq/hydrogen-web
No need for handler to be async
This commit is contained in:
parent
c1a8ffd814
commit
57e2c4ea45
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ async function purgeOldCaches() {
|
|||
}
|
||||
}
|
||||
|
||||
self.addEventListener('fetch', async (event) => {
|
||||
self.addEventListener('fetch', (event) => {
|
||||
if (event.request.method === "GET") {
|
||||
event.respondWith(handleRequest(event.request));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue