fix: implement 'login' event for WebContents (#20954)

This commit is contained in:
Jeremy Apthorp
2019-11-11 09:47:01 -08:00
committed by GitHub
parent 049bd09150
commit 034f4d5734
16 changed files with 239 additions and 247 deletions

View File

@@ -105,9 +105,9 @@ if (process.platform === 'linux') {
}
// Routes the events to webContents.
const events = ['login', 'certificate-error', 'select-client-certificate']
const events = ['certificate-error', 'select-client-certificate']
for (const name of events) {
app.on(name as 'login', (event, webContents, ...args: any[]) => {
app.on(name as 'certificate-error', (event, webContents, ...args: any[]) => {
webContents.emit(name, event, ...args)
})
}