You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some an issue with the @electron/remote "enable" method.
It works fine for the first BrowserWindow (created by the main process).
But it gives me the following error when I'm doing it from the created window : "@electron/remote is disabled for this WebContents. Call require("@electron/remote/main").enable(webContents) to enable it".
Here is my code:
const{ dialog, BrowserWindow,require: nodeRequire}=require("@electron/remote");// called from the renderer processconstwin=newBrowserWindow({
...windowOption,});nodeRequire("@electron/remote/main").enable(win.webContents);win.loadURL(...)
I'm using electron 17 and @electron/remote 2.0.5
Do you have any tips please ?
Sincerely
The text was updated successfully, but these errors were encountered:
Elyspio
changed the title
@electron/remote is disabled for this WebContents with mutiple windows
"@electron/remote is disabled for this WebContents" with mutiple BrowserWindows
Feb 27, 2022
Hello,
I have some an issue with the @electron/remote "enable" method.
It works fine for the first BrowserWindow (created by the main process).
But it gives me the following error when I'm doing it from the created window : "@electron/remote is disabled for this WebContents. Call require("@electron/remote/main").enable(webContents) to enable it".
Here is my code:
I'm using electron 17 and @electron/remote 2.0.5
Do you have any tips please ?
Sincerely
The text was updated successfully, but these errors were encountered: