Standardize process
This commit is contained in:
parent
91150839be
commit
a5969fd076
1 changed files with 8 additions and 3 deletions
|
@ -1,13 +1,18 @@
|
||||||
# Process object
|
# Process
|
||||||
|
|
||||||
The `process` object in Electron has the following differences from the one in
|
The `process` object in Electron has the following differences from the one in
|
||||||
upstream node:
|
upstream node:
|
||||||
|
|
||||||
* `process.type` String - Process's type, can be `browser` (i.e. main process) or `renderer`.
|
* `process.type` String - Process's type, can be `browser` (i.e. main process)
|
||||||
|
or `renderer`.
|
||||||
* `process.versions['electron']` String - Version of Electron.
|
* `process.versions['electron']` String - Version of Electron.
|
||||||
* `process.versions['chrome']` String - Version of Chromium.
|
* `process.versions['chrome']` String - Version of Chromium.
|
||||||
* `process.resourcesPath` String - Path to JavaScript source code.
|
* `process.resourcesPath` String - Path to JavaScript source code.
|
||||||
|
|
||||||
## process.hang
|
# Methods
|
||||||
|
|
||||||
|
The `process` object has the following method:
|
||||||
|
|
||||||
|
### `process.hang`
|
||||||
|
|
||||||
Causes the main thread of the current process hang.
|
Causes the main thread of the current process hang.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue