Explicit nodeIntegration: true

This commit is contained in:
jtc42 2019-09-09 20:46:42 +01:00
parent da9238fff3
commit 8c556319b9

View file

@ -97,7 +97,10 @@ function createWindow() {
frame: !store.get('drawCustomTitleBar'),
width: 1124,
height: 800,
icon: path.join(__dirname, '/icons/png/64x64.png')
icon: path.join(__dirname, '/icons/png/64x64.png'),
webPreferences: {
nodeIntegration: true
}
})
// Make a context menu