mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: use Playwright request context instead of global fetch
Addresses review feedback: https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3054600477
This commit is contained in:
@@ -434,8 +434,8 @@ export const comfyPageFixture = base.extend<{
|
||||
for (const entry of entries) {
|
||||
if (typeof entry.source !== 'string' && entry.url.startsWith('http')) {
|
||||
try {
|
||||
const resp = await fetch(entry.url)
|
||||
if (resp.ok) Object.assign(entry, { source: await resp.text() })
|
||||
const resp = await page.request.get(entry.url)
|
||||
if (resp.ok()) Object.assign(entry, { source: await resp.text() })
|
||||
} catch {
|
||||
// skip unreachable scripts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user