Skip to content

Commit b507475

Browse files
committed
chore: PR feedbacks
1 parent 9c3063c commit b507475

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/bin/chrome-devtools.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ delete startCliOptions.autoConnect;
4949
delete startCliOptions.viewport;
5050

5151
// Change the defaults for the CLI.
52+
delete startCliOptions.experimentalStructuredContent;
53+
delete startCliOptions.experimentalInteropTools;
54+
delete startCliOptions.experimentalPageIdRouting;
55+
if (!('default' in cliOptions.headless)) {
56+
throw new Error('headless cli option unexpectedly does not have a default');
57+
}
58+
if ('default' in cliOptions.isolated) {
59+
throw new Error('isolated cli option unexpectedly has a default');
60+
}
5261
startCliOptions.headless!.default = true;
5362
startCliOptions.isolated!.description =
5463
'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to true unless userDataDir is provided.';

0 commit comments

Comments
 (0)