frankhale / electron-with-express

A simple app that demonstrates spawning an Express app from Electron
MIT License
643 stars 147 forks source link

set enable remote module on create Window #30

Closed mastereva closed 3 years ago

mastereva commented 3 years ago

The solution to the issue #29 In the current version of electron the remote module is being disabled by default which is why starting the express server didn't work after upgrading it. Adding the enableRemoteModule flag when creating the window reenables it and allows the express server to start again in a build.

frankhale commented 3 years ago

Thank you for this. I took a break from Electron and didn't know they changed this.

mastereva commented 3 years ago

@frankhale No problem. I'm glad I could help! Stay healthy!