Merge pull request #4543 from baconface/patch-2
Changed session to app to reflect rest of document
This commit is contained in:
commit
777ff450cf
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ certificate you should prevent the default behavior with
|
|||
`event.preventDefault()` and call `callback(true)`.
|
||||
|
||||
```javascript
|
||||
session.on('certificate-error', function(event, webContents, url, error, certificate, callback) {
|
||||
app.on('certificate-error', function(event, webContents, url, error, certificate, callback) {
|
||||
if (url == "https://github.com") {
|
||||
// Verification logic.
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue