This commit is contained in:
Simon Knott 2024-11-11 14:11:23 +01:00
parent 28bfe2b179
commit 253e9a39f6
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -154,7 +154,7 @@ async function doFetch(event: FetchEvent): Promise<Response> {
return fetch(event.request); return fetch(event.request);
} }
const snapshotUrl = unwrapPopoutUrl(client!.url); const snapshotUrl = unwrapPopoutUrl(client.url);
const traceUrl = new URL(snapshotUrl).searchParams.get('trace')!; const traceUrl = new URL(snapshotUrl).searchParams.get('trace')!;
const { snapshotServer } = loadedTraces.get(traceUrl) || {}; const { snapshotServer } = loadedTraces.get(traceUrl) || {};
if (!snapshotServer) if (!snapshotServer)