Add ability to set arbitrary arguments in a renderer process (#11850)

This commit is contained in:
Samuel Attard 2018-02-13 04:54:31 +11:00 committed by Charles Kerr
parent 66b57858b8
commit b3234f634b
6 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,4 @@
var ipcRenderer = require('electron').ipcRenderer
window.onload = function () {
ipcRenderer.send('answer', process.argv)
}