Skip to content

Commit

Permalink
documentation: adjust comment language in runPlaywright
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Dec 24, 2023
1 parent 0aec8f3 commit 5aef5ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/util/runPlaywright.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ module.exports.createPlaywrightBrowser = async function (config) {
}

/**
* If headless isn't defined, or it's not a boolean, proceed with sanitization
* If headless is defined, and it's not a boolean, proceed with sanitization
* of `engineOptions`, setting Playwright to ignore its built in
* `--headless` flag, and pass the custom `--headless='string'` flag.
* `--headless` flag. Then, pass the custom `--headless='string'` flag.
* NOTE: This is will fail if user defined `headless` mode
* is an invalid option for Playwright, but is future-proof if they add something
* like 'old' headless mode when 'new' mode is default.
* like 'old' headless mode when 'new' mode is default. A warning is included for this case.
*/
if (typeof headless !== 'undefined' && typeof headless !== 'boolean') {
sanitizedEngineOptions = {
Expand Down

0 comments on commit 5aef5ea

Please sign in to comment.