Inherit enabled-sandbox in opened windows

This commit is contained in:
Kevin Sawicki 2017-07-10 16:23:04 -07:00
parent c71b0a5441
commit 86b1deedfa
3 changed files with 25 additions and 6 deletions

View file

@ -1,4 +1,4 @@
const {ipcRenderer} = require('electron')
const {ipcRenderer, remote} = require('electron')
ipcRenderer.send('answer', process.argv)
ipcRenderer.send('answer', process.argv, remote.getCurrentWindow().webContents.getWebPreferences())
window.close()