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:
Max Schmitt 2024-10-22 15:42:39 +02:00 committed by GitHub
parent 3eb36c5b78
commit ccafbbf8ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -487,7 +487,13 @@ export class Registry {
_isHermeticInstallation: true, _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'); const chromiumHeadlessShellExecutable = findExecutablePath(chromiumHeadlessShellDescriptor.dir, 'chromium-headless-shell');
this._executables.push({ this._executables.push({
type: 'browser', type: 'browser',