misc fixes

This commit is contained in:
velzie 2024-08-03 11:20:15 -04:00
parent 7e8e9990f4
commit a58f9bcb63
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
6 changed files with 26 additions and 8 deletions

View file

@ -51,7 +51,11 @@ export async function swfetch(
(w) => w.origin === url.origin
);
if (activeWorker && activeWorker.connected) {
if (
activeWorker &&
activeWorker.connected &&
urlParam.get("from") !== "swruntime"
) {
// TODO: check scope
const r = await activeWorker.fetch(request);
if (r) return r;