electron/spec/fixtures/api/new-window-preload.js
loc 0b85fdf26c
feat: add webContents.setWindowOpenHandler API (#24517)
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-11-10 09:06:03 -08:00

7 lines
193 B
JavaScript

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