electron/spec-main/fixtures/api/new-window-preload.js
Jeremy Rose d44a187d0b
feat: remove nativeWindowOpen option (#29405)
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
Co-authored-by: Milan Burda <milan.burda@gmail.com>
2022-01-06 09:28:03 -08:00

6 lines
126 B
JavaScript

const { ipcRenderer, webFrame } = require('electron');
ipcRenderer.send('answer', {
argv: process.argv
});
window.close();