electron-process-manager icon indicating copy to clipboard operation
electron-process-manager copied to clipboard

Electron 10 - Fix missing `remote` module

Open krisdages opened this issue 4 years ago • 2 comments

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

krisdages avatar Sep 15 '20 18:09 krisdages

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

leohxj avatar Jul 13 '21 10:07 leohxj

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

krisdages avatar Jul 28 '21 16:07 krisdages