Electron >=v13.0.0-beta.6 required to support sandboxed renderers
See original GitHub issueBrowserWindow webPreferences
setting is:
{
"nodeIntegration": true,
"contextIsolation": false,
"sandbox": false,
"enableRemoteModule": true,
}
Demo code:
import {dialog} from "@electron/remote";
It seems the demo code works on electron 12.x but broken with 13.0.1 version.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Process Sandboxing | Electron
A sandboxed renderer won't have a Node.js environment initialized. Therefore, when the sandbox is enabled, renderer processes can only perform privileged tasks ...
Read more >sandbox Option | Electron
Create a browser window with a renderer that can run inside Chromium OS sandbox. With this option enabled, the renderer must communicate via...
Read more >@electron/remote - npm
electron /remote` is an [Electron](https://electronjs.org) module that bridges JavaScript objects from the main process to the renderer ...
Read more >Electron functions are inaccessible from within renderer ...
Then in main.js add the following line: require('@electron/remote/main').initialize(). Then finally when you're creating your window in the ...
Read more >sandbox Option - Electron - W3cubDocs
A sandboxed renderer doesn't have a Node.js environment running and doesn't expose Node.js JavaScript APIs to client code. The only exception is the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried, it seems still has this problem = =.
https://github.com/electron/remote/issues/130#issuecomment-1150535397
This might help.