mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: cleanup headless check (#11863)
This commit is contained in:
parent
85d97b0cc7
commit
47c9fe5cd4
@ -235,7 +235,7 @@ export class ChromeLauncher extends ProductLauncher {
|
||||
}
|
||||
if (headless) {
|
||||
chromeArguments.push(
|
||||
headless === true ? '--headless=new' : '--headless',
|
||||
headless === 'shell' ? '--headless' : '--headless=new',
|
||||
'--hide-scrollbars',
|
||||
'--mute-audio'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user