diff --git a/lib/uv.sw.js b/lib/uv.sw.js index 71c52d3..6a68596 100644 --- a/lib/uv.sw.js +++ b/lib/uv.sw.js @@ -1,5 +1,5 @@ -importScripts('/uv.bundle.js'); -importScripts('/uv.config.js') +importScripts('./uv.bundle.js'); +importScripts('./uv.config.js') const csp = [ 'cross-origin-embedder-policy', @@ -79,7 +79,6 @@ function UVServiceWorker(bare = '/bare/', options) { try { return async function handler(event) { const { request } = event; - try { if (!request.url.startsWith(location.origin + (options.prefix || '/service/'))) { return fetch(request);