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:
parent
e91fa5e6ff
commit
7a9450d80b
|
|
@ -295,7 +295,7 @@ export class Chromium extends BrowserType {
|
|||
if (args.find(arg => !arg.startsWith('-')))
|
||||
throw new Error('Arguments can not specify page to be opened');
|
||||
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];
|
||||
|
||||
if (os.platform() === 'darwin') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue