Skip to content

Commit

Permalink
fix(playwright): keep viewport size
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Jan 25, 2025
1 parent 59ad6d4 commit 4c24888
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions npiai/core/browser/_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ async def on_popup(self, popup: Page):
Args:
popup: Page instance
"""
await popup.set_viewport_size(self.page.viewport_size)
self.page = popup
self.attach_events(popup)

Expand Down

0 comments on commit 4c24888

Please sign in to comment.