Merge pull request #9012 from electron/fixup-docs-4
Add missing property types on the process docs
This commit is contained in:
commit
79346f1ac5
2 changed files with 12 additions and 9 deletions
|
@ -32,38 +32,38 @@ process.once('loaded', () => {
|
||||||
|
|
||||||
### `process.noAsar`
|
### `process.noAsar`
|
||||||
|
|
||||||
Setting this to `true` can disable the support for `asar` archives in Node's
|
A `Boolean` that controls ASAR support inside your application. Setting this to `true`
|
||||||
built-in modules.
|
will disable the support for `asar` archives in Node's built-in modules.
|
||||||
|
|
||||||
### `process.type`
|
### `process.type`
|
||||||
|
|
||||||
Current process's type, can be `"browser"` (i.e. main process) or `"renderer"`.
|
A `String` representing the current process's type, can be `"browser"` (i.e. main process) or `"renderer"`.
|
||||||
|
|
||||||
### `process.versions.electron`
|
### `process.versions.electron`
|
||||||
|
|
||||||
Electron's version string.
|
A `String` representing Electron's version string.
|
||||||
|
|
||||||
### `process.versions.chrome`
|
### `process.versions.chrome`
|
||||||
|
|
||||||
Chrome's version string.
|
A `String` representing Chrome's version string.
|
||||||
|
|
||||||
### `process.resourcesPath`
|
### `process.resourcesPath`
|
||||||
|
|
||||||
Path to the resources directory.
|
A `String` representing the path to the resources directory.
|
||||||
|
|
||||||
### `process.mas`
|
### `process.mas`
|
||||||
|
|
||||||
For Mac App Store build, this property is `true`, for other builds it is
|
A `Boolean`. For Mac App Store build, this property is `true`, for other builds it is
|
||||||
`undefined`.
|
`undefined`.
|
||||||
|
|
||||||
### `process.windowsStore`
|
### `process.windowsStore`
|
||||||
|
|
||||||
If the app is running as a Windows Store app (appx), this property is `true`,
|
A `Boolean`. If the app is running as a Windows Store app (appx), this property is `true`,
|
||||||
for otherwise it is `undefined`.
|
for otherwise it is `undefined`.
|
||||||
|
|
||||||
### `process.defaultApp`
|
### `process.defaultApp`
|
||||||
|
|
||||||
When app is started by being passed as parameter to the default app, this
|
A `Boolean`. When app is started by being passed as parameter to the default app, this
|
||||||
property is `true` in the main process, otherwise it is `undefined`.
|
property is `true` in the main process, otherwise it is `undefined`.
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
|
@ -136,6 +136,9 @@ Inserts `text` to the focused element.
|
||||||
* `callback` Function (optional) - Called after script has been executed.
|
* `callback` Function (optional) - Called after script has been executed.
|
||||||
* `result` Any
|
* `result` Any
|
||||||
|
|
||||||
|
Returns `Promise` - A promise that resolves with the result of the executed code
|
||||||
|
or is rejected if the result of the code is a rejected promise.
|
||||||
|
|
||||||
Evaluates `code` in page.
|
Evaluates `code` in page.
|
||||||
|
|
||||||
In the browser window some HTML APIs like `requestFullScreen` can only be
|
In the browser window some HTML APIs like `requestFullScreen` can only be
|
||||||
|
|
Loading…
Reference in a new issue