earshelf / source /scripts /phone-eval.mjs
WilburDev's picture
Deploy 2026-11-19T12:25Z
4a58e48 verified
Raw History Blame Contribute Delete
319 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'));
console.log(await p.evaluate(new Function('return (' + process.argv[2] + ')()')));
await b.close().catch(() => {});