Skip to content

Commit 3a5c98e

Browse files
committed
chore: update version to 0.0.35-4 and improve tab selection error handling
- Incremented package version to 0.0.35-4 in package.json. - Enhanced error handling in tab selection by checking for undefined index in tabs.ts.
1 parent f75ea2f commit 3a5c98e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asteroid-playwright-mcp",
3-
"version": "0.0.35-3",
3+
"version": "0.0.35-4",
44
"description": "Playwright Tools for MCP",
55
"type": "module",
66
"private": false,

src/tools/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const browserTabs = defineTool({
4949
return;
5050
}
5151
case 'select': {
52-
if (!params.index)
52+
if (params.index === undefined)
5353
throw new Error('Tab index is required');
5454
await context.selectTab(params.index);
5555
response.setIncludeSnapshot();

0 commit comments

Comments
 (0)