This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mainWindow = new BrowserWindow({ | |
webPreferences: { | |
nativeWindowOpen: true,// window.open return Window object(like in regular browsers), not BrowserWindowProxy | |
affinity: 'main-window'// main window, and addition windows should work in one process | |
} | |
}); | |
mainWindow.webContents.on('new-window', function (e, url, frameName, disposition, options) { | |
// hook on new opened window |