fix(desktop): disable nodeIntegration and enable contextIsolation/sandbox

This commit is contained in:
kolaente 2026-03-20 10:06:24 +01:00 committed by kolaente
parent 89923ebe70
commit 23de2197fd
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ function createWindow() {
width: 1680,
height: 960,
webPreferences: {
nodeIntegration: true,
nodeIntegration: false,
contextIsolation: true,
sandbox: true,
webviewTag: false,
navigateOnDragDrop: false,
}
})