docs: update Node API renderer example to use contextBridge (#28370)

This commit is contained in:
Will Anderson
2021-03-24 17:40:21 -07:00
committed by GitHub
parent 5b414b6f93
commit 5d1ada085d
3 changed files with 21 additions and 15 deletions

View File

@@ -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