Update packages/playwright-core/src/server/chromium/chromium.ts

Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-10-28 22:23:26 +01:00 committed by GitHub
parent e91fa5e6ff
commit 7a9450d80b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,7 +295,7 @@ export class Chromium extends BrowserType {
if (args.find(arg => !arg.startsWith('-'))) if (args.find(arg => !arg.startsWith('-')))
throw new Error('Arguments can not specify page to be opened'); throw new Error('Arguments can not specify page to be opened');
if (!options.headless && options.channel === 'chromium-headless-shell') if (!options.headless && options.channel === 'chromium-headless-shell')
throw new Error('Cannot launch headed Chromium via headless-shell. Consider using normal Chromium instead.'); throw new Error('Cannot launch headed Chromium with `chromium-headless-shell` channel. Consider using regular Chromium instead.');
const chromeArguments = [...chromiumSwitches]; const chromeArguments = [...chromiumSwitches];
if (os.platform() === 'darwin') { if (os.platform() === 'darwin') {