electron/spec/fixtures/api/new-window-preload.js
2017-07-17 11:55:15 -07:00

4 lines
166 B
JavaScript

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