electron/spec/fixtures/api/new-window-preload.js

5 lines
168 B
JavaScript
Raw Normal View History

2018-09-13 16:10:51 +00:00
const { ipcRenderer, remote } = require('electron')
ipcRenderer.send('answer', process.argv, remote.getCurrentWindow().webContents.getWebPreferences())
window.close()