Disable remote module for main electron browser window (#2847)
This commit is contained in:
parent
3a77838cc9
commit
46f92541c9
@ -13,6 +13,7 @@ function createWindow (): Promise<unknown> {
|
||||
const win = new BrowserWindow({
|
||||
height,
|
||||
webPreferences: {
|
||||
enableRemoteModule: false,
|
||||
nodeIntegration: true
|
||||
},
|
||||
width
|
||||
|
||||
Loading…
Reference in New Issue
Block a user