Skip to content

Commit

Permalink
refactor(api/service-worker/worker): allow early fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Apr 29, 2024
1 parent 162da5f commit d8cb808
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/service-worker/worker.js
Expand Up @@ -343,10 +343,6 @@ async function onMessage (event) {
return
}

if (!/activated|activating/.test(state.serviceWorker.state)) {
return
}

if (data?.fetch?.request) {
event.stopImmediatePropagation()
if (/post|put/i.test(data.fetch.request.method)) {
Expand Down

0 comments on commit d8cb808

Please sign in to comment.