mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
misc fixes
This commit is contained in:
parent
7e8e9990f4
commit
a58f9bcb63
6 changed files with 26 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue