From 82690499184707fcaede5dfbfaf598b432468e82 Mon Sep 17 00:00:00 2001 From: Jason <59297610+caracal-js@users.noreply.github.com> Date: Wed, 23 Feb 2022 18:24:50 -0500 Subject: [PATCH] Update uv.sw.js --- lib/uv.sw.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);