Skip to content

Commit 6692449

Browse files
committed
format
1 parent e963f17 commit 6692449

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/McpPage.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,24 +272,30 @@ export class McpPage implements ContextPage {
272272
response.includeSnapshot();
273273

274274
for (const handle of oldHandles) {
275-
await handle.dispose().catch(e => logger('Failed to dispose old handle', e));
275+
await handle
276+
.dispose()
277+
.catch(e => logger('Failed to dispose old handle', e));
276278
}
277279
}
278280

279281
const cdpElementIds = await Promise.all(
280282
elementHandles.map(async (elementHandle, index) => {
281283
const backendNodeId = await elementHandle.backendNodeId();
282284
if (!backendNodeId) {
283-
logger(`No backendNodeId for stashed DOM element with index ${index}`);
285+
logger(
286+
`No backendNodeId for stashed DOM element with index ${index}`,
287+
);
284288
return `stashed-${index}`;
285289
}
286290
const cdpElementId = this.resolveCdpElementId(backendNodeId);
287291
if (!cdpElementId) {
288-
logger(`Could not get cdpElementId for backend node ${backendNodeId}`);
292+
logger(
293+
`Could not get cdpElementId for backend node ${backendNodeId}`,
294+
);
289295
return `stashed-${index}`;
290296
}
291297
return cdpElementId;
292-
})
298+
}),
293299
);
294300

295301
const recursivelyReplaceStashedElements = (node: unknown): unknown => {

0 commit comments

Comments
 (0)