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
#IPCRenderer
6 messages · Page 1 of 1 (latest)