d78f37ec8f
Co-authored-by: Milan Burda <miburda@microsoft.com>
10 lines
328 B
JavaScript
10 lines
328 B
JavaScript
const { app, utilityProcess } = require('electron');
|
|
const path = require('node:path');
|
|
|
|
app.whenReady().then(() => {
|
|
const payload = app.commandLine.getSwitchValue('payload');
|
|
const child = utilityProcess.fork(path.join(__dirname, 'test.js'), [`--payload=${payload}`]);
|
|
child.on('exit', () => {
|
|
app.quit();
|
|
});
|
|
});
|