Completing UTs

This commit is contained in:
Hari Krishna Reddy Juturu 2017-06-19 07:46:14 -07:00
parent 0b7e7458c9
commit e546820a4a
3 changed files with 15 additions and 23 deletions

View file

@ -1,3 +1,8 @@
process.once('loaded', function () {
window.argv = process.argv
})
const { ipcRenderer } = require('electron')
if (process) {
process.once('loaded', function () {
ipcRenderer.send('processArgs', process.argv)
})
} else {
ipcRenderer.send('processArgs', 'unable to get process args')
}