Emit web-contents-created on app
This commit is contained in:
parent
2dc453b4be
commit
56001b481e
2 changed files with 12 additions and 12 deletions
|
@ -236,7 +236,7 @@ const loadDevToolsExtensions = function (win, manifests) {
|
|||
win.devToolsWebContents.executeJavaScript(`DevToolsAPI.addExtensions(${JSON.stringify(extensionInfoArray)})`)
|
||||
}
|
||||
|
||||
webContents.on('web-contents-created', function (webContents) {
|
||||
app.on('web-contents-created', function (event, webContents) {
|
||||
if (webContents.getType() === 'remote') return
|
||||
|
||||
hookWebContentsForTabEvents(webContents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue