Skip to content

Commit 6b7f2a9

Browse files
author
Natallia Harshunova
committed
pr comments
1 parent f94c6aa commit 6b7f2a9

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ interface McpLaunchOptions {
145145
chromeArgs?: string[];
146146
ignoreDefaultChromeArgs?: string[];
147147
devtools: boolean;
148+
enableExtensions?: boolean;
148149
}
149150

150151
export async function launch(options: McpLaunchOptions): Promise<Browser> {
@@ -201,7 +202,7 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
201202
ignoreDefaultArgs: ignoreDefaultArgs,
202203
acceptInsecureCerts: options.acceptInsecureCerts,
203204
handleDevToolsAsPage: true,
204-
enableExtensions: true,
205+
enableExtensions: options.enableExtensions,
205206
});
206207
if (options.logFile) {
207208
// FIXME: we are probably subscribing too late to catch startup logs. We

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ async function getContext(): Promise<McpContext> {
9191
ignoreDefaultChromeArgs,
9292
acceptInsecureCerts: args.acceptInsecureCerts,
9393
devtools,
94+
enableExtensions: args.categoryExtensions,
9495
});
9596

9697
if (context?.browser !== browser) {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html>
2-
<html
3-
><body
4-
><h1>Test Popup</h1></body
5-
></html
6-
>
2+
<html>
3+
<body>
4+
<h1>Test Popup</h1>
5+
</body>
6+
</html>

0 commit comments

Comments
 (0)