mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03: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
|
||||
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 client = await self.clients.get(event.clientId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user