diff --git a/app/static/sw.js b/app/static/sw.js index e06015d..184a43d 100644 --- a/app/static/sw.js +++ b/app/static/sw.js @@ -16,6 +16,9 @@ self.addEventListener('activate', e => { self.addEventListener('fetch', e => { const url = new URL(e.request.url); + // Only handle http/https requests + if (url.protocol !== 'http:' && url.protocol !== 'https:') return; + // Pass through API calls if (url.pathname === '/extract-audio') return;