Skip to content

Commit ccc26eb

Browse files
cherniavskiicodebytere
authored andcommitted
enable node integration to make invisible window demo work (electron#430)
1 parent 1a48c15 commit ccc26eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

renderer-process/communication/invisible-msg.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ invisMsgBtn.addEventListener('click', (clickEvent) => {
1111
let win = new BrowserWindow({
1212
width: 400,
1313
height: 400,
14-
show: false
14+
show: false,
15+
webPreferences: {
16+
nodeIntegration: true
17+
}
1518
})
1619
win.loadURL(invisPath)
1720

0 commit comments

Comments
 (0)