Add certificate-error event
This commit is contained in:
parent
341341bf28
commit
e432abfb42
7 changed files with 87 additions and 39 deletions
|
@ -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', ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue