earshelf / source /scripts /phone-reload.mjs
WilburDev's picture
Deploy 2026-11-19T12:25Z
4a58e48 verified
Raw History Blame Contribute Delete
421 Bytes
import { chromium } from '@playwright/test';
const b = await chromium.connectOverCDP('http://localhost:9333');
const p = b.contexts()[0].pages().find((x) => x.url().startsWith('http://localhost:4175'));
await p.reload(); await p.waitForTimeout(2000);
console.log(await p.evaluate(() => performance.getEntriesByType('resource').map((r) => r.name).filter((n) => /worker|index-/.test(n))));
await b.close().catch(() => {});