mirror of https://github.com/Kylart/KawAnime.git
Fix nodeIntegration for renderer processes
This commit is contained in:
parent
d994732ccd
commit
14fe504a4b
4
main.js
4
main.js
|
@ -171,7 +171,9 @@ const newWin = () => {
|
|||
startServer()
|
||||
|
||||
process.win = new BrowserWindow({
|
||||
nodeIntegration: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: false
|
||||
},
|
||||
width: 1200,
|
||||
height: 800,
|
||||
titleBarStyle: 'hidden',
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue