getstation / electron-process-manager

Process manager UI for Electron applications
189 stars 41 forks source link

Electron 10 - Fix missing `remote` module #26

Open krisdages opened 4 years ago

krisdages commented 4 years ago

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

leohxj commented 3 years ago

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

krisdages commented 3 years ago

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