Skip to content

Commit 7c353c2

Browse files
committed
WIP: local changes
1 parent 9e7b36a commit 7c353c2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/browser.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
9090
if (customDevTools) {
9191
args.push(`--custom-devtools-frontend=file://${customDevTools}`);
9292
}
93-
// Prefer executablePath over channel
94-
let puppeterChannel: ChromeReleaseChannel | undefined;
95-
if (!executablePath) {
96-
puppeterChannel =
97-
channel && channel !== 'stable'
98-
? (`chrome-${channel}` as ChromeReleaseChannel)
99-
: 'chrome';
100-
} else {
101-
puppeterChannel = undefined; // <-- ensures channel is not set when executablePath is used
102-
}
93+
// Prefer executablePath over channel
94+
let puppeterChannel: ChromeReleaseChannel | undefined;
95+
if (!executablePath) {
96+
puppeterChannel =
97+
channel && channel !== 'stable'
98+
? (`chrome-${channel}` as ChromeReleaseChannel)
99+
: 'chrome';
100+
} else {
101+
puppeterChannel = undefined; // <-- ensures channel is not set when executablePath is used
102+
}
103103

104104
try {
105105
const browser = await puppeteer.launch({

0 commit comments

Comments
 (0)