Skip to content

Commit

Permalink
fix(puppeteer): new-headless mode is enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
amtrack committed Jul 25, 2024
1 parent 2181b83 commit 6baf95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browserforce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Browserforce {
// workaround for navigating frames https://github.com/puppeteer/puppeteer/issues/5123
'--disable-features=site-per-process'
],
headless: process.env.BROWSER_DEBUG === 'true' ? false : 'new'
headless: !(process.env.BROWSER_DEBUG === 'true')
});
const page = await this.getNewPage();
try {
Expand Down

0 comments on commit 6baf95d

Please sign in to comment.