style(e2e): biome-format host-computer-prompt rpc/me cast
This commit is contained in:
parent
95c5544786
commit
67a604dc5a
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user