Skip to content

Commit 477eef4

Browse files
authored
fix: update puppeteer to 24.24.1 (#370)
Fixes #322 via puppeteer/puppeteer#14304 Fixes #292 via puppeteer/puppeteer#14307 and puppeteer/puppeteer#14306
1 parent 5a6592d commit 477eef4

File tree

3 files changed

+31
-33
lines changed

3 files changed

+31
-33
lines changed

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@modelcontextprotocol/sdk": "1.20.0",
4141
"core-js": "3.46.0",
4242
"debug": "4.4.3",
43-
"puppeteer-core": "^24.24.0",
43+
"puppeteer-core": "^24.24.1",
4444
"yargs": "18.0.0",
4545
"zod": "^3.25.76"
4646
},
@@ -60,7 +60,7 @@
6060
"eslint-plugin-import": "^2.32.0",
6161
"globals": "^16.4.0",
6262
"prettier": "^3.6.2",
63-
"puppeteer": "24.24.0",
63+
"puppeteer": "24.24.1",
6464
"sinon": "^21.0.0",
6565
"typescript": "^5.9.2",
6666
"typescript-eslint": "^8.43.0"

src/browser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
142142
} catch (error) {
143143
if (
144144
userDataDir &&
145-
((error as Error).message.includes('The browser is already running') ||
146-
(error as Error).message.includes('Target closed') ||
147-
(error as Error).message.includes('Connection closed'))
145+
(error as Error).message.includes('The browser is already running')
148146
) {
149147
throw new Error(
150148
`The browser is already running for ${userDataDir}. Use --isolated to run multiple browser instances.`,

0 commit comments

Comments
 (0)