contextIsolation is deprecated, but setting it to false throws null error
TheColorRed opened this issue · 1 comments
TheColorRed commented
When contextIsolation
is set to true
, the following error is produced:
TypeError: Cannot read property 'send' of null
However, with it off/emitted, electron says:
(node:9944) electron: The default of contextIsolation is deprecated and will be changing from
false to true in a future release of Electron. See electron/electron#23506 for more information
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
contextIsolation: true
}
})
Is there a way around this?
slapbox commented
You can't use nodeIntegration
with contextIsolation
- they're mutually exclusive.