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

5 lines
166 B
JavaScript
Raw Normal View History

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