add webFrame to sandboxed renderer

This commit is contained in:
sungpark 2017-08-08 16:19:18 -07:00
parent bf07c5aebd
commit eca7ff986c
4 changed files with 9 additions and 2 deletions

View file

@ -6,6 +6,8 @@ const {ipcRenderer, webFrame} = require('electron')
window.foo = 3
webFrame.executeJavaScript('window.preloadExecuteJavaScriptProperty = 1234;')
window.addEventListener('message', (event) => {
ipcRenderer.send('isolated-world', {
preloadContext: {