Skip to content

Commit

Permalink
fix(worker): remove bypassing of server-sent events (#1551)
Browse files Browse the repository at this point in the history
Remove server-sent events bypass
  • Loading branch information
piotr-cz authored Feb 21, 2023
1 parent 021a080 commit 1bfd751
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ self.addEventListener('fetch', function (event) {
const { request } = event
const accept = request.headers.get('accept') || ''

// Bypass server-sent events.
if (accept.includes('text/event-stream')) {
return
}

// Bypass navigation requests.
if (request.mode === 'navigate') {
return
Expand Down

0 comments on commit 1bfd751

Please sign in to comment.