Changed session to app to reflect rest of document
This commit is contained in:
parent
d5f4a32435
commit
2a6fcf48e5
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)`.
|
`event.preventDefault()` and call `callback(true)`.
|
||||||
|
|
||||||
```javascript
|
```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") {
|
if (url == "https://github.com") {
|
||||||
// Verification logic.
|
// Verification logic.
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue