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

8 lines
193 B
JavaScript
Raw Normal View History

const { ipcRenderer, webFrame } = require('electron');
ipcRenderer.send('answer', {
nativeWindowOpen: webFrame.getWebPreference('nativeWindowOpen'),
argv: process.argv
});
2020-03-20 20:28:31 +00:00
window.close();