fix: implement flag for disabling headless warning (#10073)
This commit is contained in:
parent
35424cbc2b
commit
cfe9bbc852
@ -48,7 +48,9 @@ export class ChromeLauncher extends ProductLauncher {
|
||||
const headless = options.headless ?? true;
|
||||
if (
|
||||
headless === true &&
|
||||
this.puppeteer.configuration.logLevel !== 'silent'
|
||||
(!this.puppeteer.configuration.logLevel ||
|
||||
this.puppeteer.configuration.logLevel === 'warn') &&
|
||||
!Boolean(process.env['PUPPETEER_DISABLE_HEADLESS_WARNING'])
|
||||
) {
|
||||
console.warn(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user