electron/spec/fixtures/api/new-window-preload.js
2020-03-20 13:28:31 -07:00

4 lines
104 B
JavaScript

const { ipcRenderer } = require('electron');
ipcRenderer.send('answer', process.argv);
window.close();