fix(desktop): disable nodeIntegration and enable contextIsolation/sandbox
This commit is contained in:
parent
89923ebe70
commit
23de2197fd
|
|
@ -12,7 +12,11 @@ function createWindow() {
|
|||
width: 1680,
|
||||
height: 960,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
nodeIntegration: false,
|
||||
contextIsolation: true,
|
||||
sandbox: true,
|
||||
webviewTag: false,
|
||||
navigateOnDragDrop: false,
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue