docs: update Node global symbols example to use contextBridge (#28245)
* docs: update Node global symbols example to use contextBridge * Trigger Build * docs: change Node API example to show how to expose a crypto API Co-authored-by: Jeremy Rose <nornagon@nornagon.net> * docs: Fix lint warning for crypto code sample * docs: update node API example description to emphasize APIs instead of symbols Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
parent
c8d18a0a1c
commit
8c3165434a
3 changed files with 21 additions and 15 deletions
|
@ -267,7 +267,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
be the absolute file path to the script.
|
||||
When node integration is turned off, the preload script can reintroduce
|
||||
Node global symbols back to the global scope. See example
|
||||
[here](process.md#event-loaded).
|
||||
[here](context-bridge.md#exposing-node-global-symbols).
|
||||
* `sandbox` Boolean (optional) - If set, this will sandbox the renderer
|
||||
associated with the window, making it compatible with the Chromium
|
||||
OS-level sandbox and disabling the Node.js engine. This is not the same as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue