Update packages/playwright-core/src/server/registry/index.ts
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
3eb36c5b78
commit
ccafbbf8ee
|
|
@ -487,7 +487,13 @@ export class Registry {
|
|||
_isHermeticInstallation: true,
|
||||
});
|
||||
|
||||
const chromiumHeadlessShellDescriptor = { ...chromium, name: 'chromium-headless-shell', dir: chromium.dir.replace(/(.*)(-\d+)$/, '$1-headless-shell$2') };
|
||||
const chromiumHeadlessShellDescriptor: BrowsersJSONDescriptor = {
|
||||
name: 'chromium-headless-shell',
|
||||
revision: chromium.revision,
|
||||
browserVersion: chromium.browserVersion,
|
||||
dir: chromium.dir.replace(/(.*)(-\d+)$/, '$1-headless-shell$2'),
|
||||
installByDefault: false
|
||||
};
|
||||
const chromiumHeadlessShellExecutable = findExecutablePath(chromiumHeadlessShellDescriptor.dir, 'chromium-headless-shell');
|
||||
this._executables.push({
|
||||
type: 'browser',
|
||||
|
|
|
|||
Loading…
Reference in a new issue