Explicitly disable nodeIntegration in service workers
This commit is contained in:
2
main.js
2
main.js
@@ -188,6 +188,7 @@ function createWindow() {
|
|||||||
autoHideMenuBar: false,
|
autoHideMenuBar: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
|
nodeIntegrationInWorker: false,
|
||||||
// sandbox: true,
|
// sandbox: true,
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
},
|
},
|
||||||
@@ -415,6 +416,7 @@ function showAbout() {
|
|||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
|
nodeIntegrationInWorker: false,
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
},
|
},
|
||||||
parent: mainWindow,
|
parent: mainWindow,
|
||||||
|
Reference in New Issue
Block a user