chore(ci): fix biome formatting
parent
b36b20d246
commit
fd151c4fc6
|
|
@ -196,7 +196,11 @@ export function registerBrowserAgentRoutes(
|
||||||
case "press": {
|
case "press": {
|
||||||
const key = toStringOrEmpty(body.key);
|
const key = toStringOrEmpty(body.key);
|
||||||
if (!key) return jsonError(res, 400, "key is required");
|
if (!key) return jsonError(res, 400, "key is required");
|
||||||
await pw.pressKeyViaPlaywright({ cdpPort, targetId: tab.targetId, key });
|
await pw.pressKeyViaPlaywright({
|
||||||
|
cdpPort,
|
||||||
|
targetId: tab.targetId,
|
||||||
|
key,
|
||||||
|
});
|
||||||
return res.json({ ok: true, targetId: tab.targetId });
|
return res.json({ ok: true, targetId: tab.targetId });
|
||||||
}
|
}
|
||||||
case "hover": {
|
case "hover": {
|
||||||
|
|
@ -465,7 +469,9 @@ export function registerBrowserAgentRoutes(
|
||||||
? "aria"
|
? "aria"
|
||||||
: req.query.format === "ai"
|
: req.query.format === "ai"
|
||||||
? "ai"
|
? "ai"
|
||||||
: ((await getPwAiModule()) ? "ai" : "aria");
|
: (await getPwAiModule())
|
||||||
|
? "ai"
|
||||||
|
: "aria";
|
||||||
const limit =
|
const limit =
|
||||||
typeof req.query.limit === "string" ? Number(req.query.limit) : undefined;
|
typeof req.query.limit === "string" ? Number(req.query.limit) : undefined;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue