Fix nodeIntegration for renderer processes

This commit is contained in:
Kylart 2018-03-03 03:17:28 +01:00
parent d994732ccd
commit 14fe504a4b
2 changed files with 6 additions and 2 deletions

View File

@ -171,7 +171,9 @@ const newWin = () => {
startServer()
process.win = new BrowserWindow({
nodeIntegration: false,
webPreferences: {
nodeIntegration: false
},
width: 1200,
height: 800,
titleBarStyle: 'hidden',

View File

@ -34,7 +34,9 @@ const openExternal = ({query}, res) => {
case 'inside':
sendEmptyRes(res)
const win = new BrowserWindow({
nodeIntegration: false,
webPreferences: {
nodeIntegration: false
},
parent: process.win,
x: 50,
y: 50,