Skip to content

Commit

Permalink
sw fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prokawsar committed Jul 15, 2024
1 parent 7b7a131 commit 3b0ac4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ self.addEventListener('fetch', (event) => {
// ignore POST requests etc
if (event.request.method !== 'GET') return

// ignore chrome-extension requests
if (event.request.url.startsWith('chrome-extension://')) return

async function respond() {
const url = new URL(event.request.url)
const cache = await caches.open(CACHE)
Expand Down

0 comments on commit 3b0ac4b

Please sign in to comment.