Skip to content

Commit

Permalink
fix: prevent confirm dialog from being auto-dismissed
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakamiShinyu committed Apr 1, 2023
1 parent 7de79be commit dd61be8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export async function preview(cliFlags: PreviewCliFlags) {
`window.localStorage.setItem('i18nextLng', '${locale}');`,
);

// Prevent confirm dialog from being auto-dismissed
page.on('dialog', () => {});

await page.goto(viewerFullUrl);

// Move focus from the address bar to the page
Expand Down

0 comments on commit dd61be8

Please sign in to comment.