feat: add process.contextId used by @electron/remote (#28007)
This commit is contained in:
parent
54bc21929a
commit
485fa5bea9
6 changed files with 25 additions and 1 deletions
|
@ -35,6 +35,7 @@ In sandboxed renderers the `process` object contains only a subset of the APIs:
|
|||
* `versions`
|
||||
* `mas`
|
||||
* `windowsStore`
|
||||
* `contextId`
|
||||
|
||||
## Events
|
||||
|
||||
|
@ -133,6 +134,13 @@ A `String` representing Electron's version string.
|
|||
A `Boolean`. If the app is running as a Windows Store app (appx), this property is `true`,
|
||||
for otherwise it is `undefined`.
|
||||
|
||||
### `process.contextId` _Readonly_
|
||||
|
||||
A `String` (optional) representing a globally unique ID of the current JavaScript context.
|
||||
Each frame has its own JavaScript context. When contextIsolation is enabled, the isolated
|
||||
world also has a separate JavaScript context.
|
||||
This property is only available in the renderer process.
|
||||
|
||||
## Methods
|
||||
|
||||
The `process` object has the following methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue