Download source/scripts/phone-reload.mjs from WilburDev/earshelf: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/WilburDev/earshelf/resolve/main/source/scripts/phone-reload.mjs
- Command line
-
hf download hf://spaces/WilburDev/earshelf/source/scripts/phone-reload.mjs
-
curl -L -o phone-reload.mjs https://huggingface.co/spaces/WilburDev/earshelf/resolve/main/source/scripts/phone-reload.mjs
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(() => {}); | |