electron / electron/remote

webview and @electron/remote

Open
#96 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
411
Forks
53
Avg merge
3m
Merged PRs (30d)
1

Description

Electron version: 15.3.1
@electron/remote version: 2.0.1

When adding a `` 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.