electron/spec/fixtures/api/mixed-sandbox-app/electron-app-mixed-sandbox-preload.js

9 lines
228 B
JavaScript
Raw Normal View History

2017-06-19 14:46:14 +00:00
const { ipcRenderer } = require('electron')
if (process) {
2017-06-19 15:03:02 +00:00
process.once('loaded', function () {
ipcRenderer.send('processArgs', process.argv)
})
2017-06-19 14:46:14 +00:00
} else {
2017-06-19 15:03:02 +00:00
ipcRenderer.send('processArgs', 'unable to get process args')
}