Skip to content

Commit 68b880d

Browse files
author
Mati Horovitz
committed
Fix cleanup
1 parent 2b731fb commit 68b880d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/puppeteer/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ async function handleToolCall(name: string, args: any): Promise<{ toolResult: Ca
313313
const logs = await page.evaluate(() => {
314314
Object.assign(console, window.mcpHelper.originalConsole);
315315
const logs = window.mcpHelper.logs;
316-
delete ( window.mcpHelper as any).logs;
316+
delete ( window as any).mcpHelper;
317317
return logs;
318318
});
319319

@@ -426,4 +426,4 @@ async function runServer() {
426426
await server.connect(transport);
427427
}
428428

429-
runServer().catch(console.error);
429+
runServer().catch(console.error);

0 commit comments

Comments
 (0)