Emit web-contents-created on app

This commit is contained in:
Kevin Sawicki 2016-06-13 08:59:03 -07:00
parent 2dc453b4be
commit 56001b481e
2 changed files with 12 additions and 12 deletions

View file

@ -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)