Skip to content

Conversation

@krisdages
Copy link

Needed to add enableRemoteModule: true to the BrowserWindow webPreferences.
The default value has changed to false.

@leohxj
Copy link

leohxj commented Jul 13, 2021

it causes this problem: "can't access getCurrentWindow from null."

@krisdages
Copy link
Author

it causes this problem: "can't access getCurrentWindow from null."

Are you using a version of Electron without the remote module? I pushed a version that uses the @electron/remote module instead but it has a minimum Electron version of 10.0.

I published a fork here npm install -S electron-process-manager=@krisdages/electron-process-manager@^2
https://www.npmjs.com/package/@krisdages/electron-process-manager

https://github.com/krisdages/electron-process-manager/tree/feature/electron-remote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants