【发布时间】:2017-11-16 00:04:05
【问题描述】:
我的应用中有一个 github auth 链接,它触发了“新窗口”侦听器”
mainWindow.webContents.on('new-window', (event, url, frameName, disposition, options, additionalFeatures) => {
// how do i store a reference to the newly created window here
})
如何存储对这个新窗口的引用,以便以后对实例执行操作?
【问题讨论】:
标签: javascript electron