docs: note that shell can't be used in sandboxed renderers (#22974)
This commit is contained in:
parent
468994bf6a
commit
6bf83e9244
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Manage files and URLs using their default applications.
|
> Manage files and URLs using their default applications.
|
||||||
|
|
||||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process) (non-sandboxed only)
|
||||||
|
|
||||||
The `shell` module provides functions related to desktop integration.
|
The `shell` module provides functions related to desktop integration.
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ const { shell } = require('electron')
|
||||||
shell.openExternal('https://github.com')
|
shell.openExternal('https://github.com')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note:** While the `shell` module can be used in the renderer process, it will not function in a sandboxed renderer.
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
The `shell` module has the following methods:
|
The `shell` module has the following methods:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue