Disable remote module for main electron browser window (#2847)

This commit is contained in:
Jakub Jóźwiak 2020-05-28 17:11:57 +02:00 committed by GitHub
parent 3a77838cc9
commit 46f92541c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ function createWindow (): Promise<unknown> {
const win = new BrowserWindow({
height,
webPreferences: {
enableRemoteModule: false,
nodeIntegration: true
},
width