Changed session to app to reflect rest of document
authorBrad Metcalf <brad@localabstract.com>
Thu, 18 Feb 2016 19:41:22 +0000 (13:41 -0600)
committerBrad Metcalf <brad@localabstract.com>
Thu, 18 Feb 2016 19:41:22 +0000 (13:41 -0600)
docs/api/app.md

index b5f8e91..bdf0a8a 100644 (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();