mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: make certain values on process read-only (#15628)
* docs: Add 'worker' as a possible value for `process.type` * fix: make certain properties on `process` read only: * `mas` * `windowsStore` * `versions.electron` * `versions.chrome` * `type` * `pid` * `sandboxed`
This commit is contained in:
committed by
John Kleinschmidt
parent
4e53019b75
commit
2a8e8a0603
@@ -103,7 +103,7 @@ A `Boolean` that controls whether or not process warnings printed to `stderr` in
|
||||
|
||||
### `process.type`
|
||||
|
||||
A `String` representing the 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), `"renderer"`, or `"worker"` (i.e. web worker).
|
||||
|
||||
### `process.versions.chrome`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user