Changed session to app to reflect rest of document

This commit is contained in:
Brad Metcalf 2016-02-18 13:41:22 -06:00
parent d5f4a32435
commit 2a6fcf48e5

View file

@ -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();