electron/spec/fixtures/api/new-window-preload.js
2018-09-14 14:57:01 +10:00

4 lines
168 B
JavaScript

const { ipcRenderer, remote } = require('electron')
ipcRenderer.send('answer', process.argv, remote.getCurrentWindow().webContents.getWebPreferences())
window.close()