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;
|
const headless = options.headless ?? true;
|
||||||
if (
|
if (
|
||||||
headless === true &&
|
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(
|
console.warn(
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user