Skip to content

Commit

Permalink
chore: disable puppeteer deprecation warning about old headless mode
Browse files Browse the repository at this point in the history
Related: #1910
  • Loading branch information
B4nan committed May 11, 2023
1 parent d12d639 commit 15c7f67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/browser-pool/src/puppeteer/puppeteer-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export class PuppeteerPlugin extends BrowserPlugin<
}
}

if (launchOptions!.headless === true) {
// to disable deprecation warnings, we should switch to `new` after more testing
launchOptions!.headless = 'old' as unknown as boolean;
}

let browser: PuppeteerTypes.Browser;

{
Expand Down

0 comments on commit 15c7f67

Please sign in to comment.