mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(trace-viewer): allow Chrome extension fallback in SW (#29954)
https://github.com/microsoft/playwright/issues/29144
This commit is contained in:
parent
5bc6ca6345
commit
be465c6a1c
@ -68,6 +68,10 @@ async function loadTrace(traceUrl: string, traceFileName: string | null, clientI
|
|||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
async function doFetch(event: FetchEvent): Promise<Response> {
|
async function doFetch(event: FetchEvent): Promise<Response> {
|
||||||
|
// In order to make Accessibility Insights for Web work.
|
||||||
|
if (event.request.url.startsWith('chrome-extension://'))
|
||||||
|
return fetch(event.request);
|
||||||
|
|
||||||
const request = event.request;
|
const request = event.request;
|
||||||
const client = await self.clients.get(event.clientId);
|
const client = await self.clients.get(event.clientId);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user