Skip to content

Commit fff3d31

Browse files
committed
chore: increment package version to 0.0.29-9 and simplify page creation handling in context.ts
- Updated package version to 0.0.29-9 in package.json. - Simplified the page creation logic in context.ts by removing unnecessary popup handling checks.
1 parent d98422e commit fff3d31

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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.29-8",
3+
"version": "0.0.29-9",
44
"description": "Playwright Tools for MCP",
55
"type": "module",
66
"private": false,

src/context.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,9 @@ ${code.join("\n")}
311311
}
312312

313313
private async _onPageCreated(page: playwright.Page) {
314-
if (!this.isHandlingPopup && (await this._detectPopup(page))) {
315-
await this._convertPopupToTab(page);
316-
} else {
317-
const tab = new Tab(this, page, (tab) => this._onPageClosed(tab));
318-
this._tabs.push(tab);
319-
if (!this._currentTab) this._currentTab = tab;
320-
}
314+
const tab = new Tab(this, page, (tab) => this._onPageClosed(tab));
315+
this._tabs.push(tab);
316+
if (!this._currentTab) this._currentTab = tab;
321317
}
322318

323319
private _onPageClosed(tab: Tab) {

0 commit comments

Comments
 (0)