webview and @electron/remote
See original GitHub issueElectron version: 15.3.1 @electron/remote version: 2.0.1
When adding a <webview />
that has a preload script that imports @electron/remote
I get Error: @electron/remote is disabled for this WebContents.
.
electronRemoteMain.enable(window.webContents);
is ran on the BrowserWindow
that renders the webview and the wrapping React component is able to use @electron/remote
, but the webview hasn’t been enabled.
Is there a way of enabling the remote module for a webview?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
`<webview>` Tag | Electron
Use the webview tag to embed 'guest' content (such as web pages) in your Electron app. The guest content is contained within the...
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 >Comunication between webview and main window without ...
Is there a way to communicate between the webview and the main window without enabling the remote module ? ... When this attribute...
Read more >Anatomy of an Electron 4 application - TypeScript TV
1. main process. 1.1. Concerns · 2. renderer process. 2.1. Concerns; 2.2. Characteristics; 2.3. Example · 3. Inter-process communication (IPC) · 4. Webview...
Read more >How to use the electron.remote.app function in electron - Snyk
_onLogoutNylasIdentity = async () => { await this.saveIdentity(null); // We need to relaunch the app to clear the webview session // and prevent...
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
replace
remote
is best solution