docs: fixed a typo in process.defaultApp
doc (#37342)
docs: improve `defaultApp`
This commit is contained in:
parent
f97d68c4bf
commit
67a6fbf265
1 changed files with 4 additions and 1 deletions
|
@ -49,8 +49,11 @@ beginning to load the web page or the main script.
|
|||
|
||||
### `process.defaultApp` _Readonly_
|
||||
|
||||
A `boolean`. When app is started by being passed as parameter to the default app, this
|
||||
A `boolean`. When the app is started by being passed as parameter to the default Electron executable, this
|
||||
property is `true` in the main process, otherwise it is `undefined`.
|
||||
For example when running the app with `electron .`, it is `true`,
|
||||
even if the app is packaged ([`isPackaged`](app.md#appispackaged-readonly)) is `true`.
|
||||
This can be useful to determine how many arguments will need to be sliced off from `process.argv`.
|
||||
|
||||
### `process.isMainFrame` _Readonly_
|
||||
|
||||
|
|
Loading…
Reference in a new issue