style(e2e): biome-format host-computer-prompt rpc/me cast

This commit is contained in:
cynarAI 2026-09-24 07:56:15 +02:00
parent 95c5544786
commit 67a604dc5a

View File

@ -29,7 +29,9 @@ for (const platform of ["darwin", "win32"]) {
}, platform);
await page.route(/\/rpc\/(me|bootstrap)$/, async (route) => {
const response = await route.fetch();
const body = (await response.json()) as { json: Record<string, unknown> & { me?: Record<string, unknown> } };
const body = (await response.json()) as {
json: Record<string, unknown> & { me?: Record<string, unknown> };
};
const me = route.request().url().endsWith("/me") ? body.json : body.json.me;
if (me) {
me.canChooseHostComputer = true;