feat: add commandLine.removeSwitch (#30933)
* feat: add commandLine.removeSwitch In some cases apps may want to remove Chromium command line switches to avoid certain Chromium behaviors being used, E.g. remote-debugging-port or gpu-launcher * fix: add missing removeSwitch to app.ts Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
parent
d6de243837
commit
014ebbd6fa
4 changed files with 32 additions and 1 deletions
|
@ -53,3 +53,12 @@ Returns `Boolean` - Whether the command-line switch is present.
|
|||
Returns `String` - The command-line switch value.
|
||||
|
||||
**Note:** When the switch is not present or has no value, it returns empty string.
|
||||
|
||||
#### `commandLine.removeSwitch(switch)`
|
||||
|
||||
* `switch` String - A command-line switch
|
||||
|
||||
Removes the specified switch from Chromium's command line.
|
||||
|
||||
**Note:** This will not affect `process.argv`. The intended usage of this function is to
|
||||
control Chromium's behavior.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue