vscode extension sends events without clientId, for whatever reason
This commit is contained in:
parent
e1d3dc224b
commit
cb76898d65
|
|
@ -112,8 +112,10 @@ async function doFetch(event: FetchEvent): Promise<Response> {
|
||||||
return snapshotServer.serveClosestScreenshot(relativePath, url.searchParams);
|
return snapshotServer.serveClosestScreenshot(relativePath, url.searchParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!client)
|
if (!client) {
|
||||||
throw new Error('expected client to be defined for all non-iframe requests. soemthing went wrong');
|
// expected client to be defined for all non-iframe requests. something went wrong
|
||||||
|
return fetch(event.request);
|
||||||
|
}
|
||||||
|
|
||||||
if (relativePath === '/contexts') {
|
if (relativePath === '/contexts') {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue