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.
|
||||
|
||||
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.
|
||||
|
||||
|
@ -14,6 +14,8 @@ const { shell } = require('electron')
|
|||
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
|
||||
|
||||
The `shell` module has the following methods:
|
||||
|
|
Loading…
Reference in a new issue