Add sync executeJavaScript test

This commit is contained in:
Samuel Attard 2016-10-11 10:40:05 +11:00 committed by Kevin Sawicki
parent 124fbdbd74
commit 75b010ce63
2 changed files with 10 additions and 1 deletions

View file

@ -48,7 +48,7 @@ electron.ipcRenderer.on('ELECTRON_INTERNAL_RENDERER_ASYNC_WEB_FRAME_METHOD', (ev
})
}
args.push(responseCallback)
electron.webFrame[method].apply(electron.webFrame, args)
electron.webFrame[method](...args)
})
// Process command line arguments.