Add certificate-error event

This commit is contained in:
Cheng Zhao 2015-11-18 10:39:25 +08:00
parent 341341bf28
commit e432abfb42
7 changed files with 87 additions and 39 deletions

View file

@ -38,6 +38,12 @@ app.getAppPath = ->
# Helpers.
app.resolveProxy = (url, callback) -> @defaultSession.resolveProxy url, callback
# Routes the events to webContents.
for name in ['login', 'certificate-error', 'select-client-certificate']
do (name) ->
app.on name, (event, webContents, args...) ->
webContents.emit name, event, args...
# Deprecated.
{deprecate} = electron
app.getHomeDir = deprecate 'app.getHomeDir', 'app.getPath', ->