#IPCRenderer

6 messages · Page 1 of 1 (latest)

daring pivot
#

this example should be updated, as now nodeintegratioçn and contextisolation are set by default. you should add in the webpreference of your mainWindow the following: webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration:true,
contextIsolation: false
}
The preload section depend if you are using a preload script or not

green leaf
#

Enabling node integration is bad for security

daring pivot
#

Ok but just to explain why the example is not working No ?

green leaf
#

No

#

Now he just enable it

#

To make it working