Skip to content

Commit

Permalink
Update packages/puppeteer-core/src/node/ChromeLauncher.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
  • Loading branch information
thiagowfx and Lightning00Blade committed Oct 23, 2023
1 parent 767523c commit 7412e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/puppeteer-core/src/node/ChromeLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export class ChromeLauncher extends ProductLauncher {
'--disable-features',
options.args
);
if (userDisabledFeatures.length > 0) {
removeMatching(options.args ?? [], /^--disable-features=.*/);
if (options.args && userDisabledFeatures.length > 0) {
removeMatching(options.args, /^--disable-features=.*/);
}

// Merge default disabled features with user-provided ones, if any.
Expand Down

0 comments on commit 7412e29

Please sign in to comment.