refactor: cleanup headless check (#11863)

This commit is contained in:
Alex Rudenko 2024-02-07 10:20:37 +01:00 committed by GitHub
parent 85d97b0cc7
commit 47c9fe5cd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'
);