Merge pull request #4543 from baconface/patch-2

Changed session to app to reflect rest of document
This commit is contained in:
Kevin Sawicki 2016-02-19 11:21:10 -08:00
commit 777ff450cf

View file

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