Skip to content

Commit 2a6fcf4

Browse files
author
Brad Metcalf
committed
Changed session to app to reflect rest of document
1 parent d5f4a32 commit 2a6fcf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ certificate you should prevent the default behavior with
156156
`event.preventDefault()` and call `callback(true)`.
157157

158158
```javascript
159-
session.on('certificate-error', function(event, webContents, url, error, certificate, callback) {
159+
app.on('certificate-error', function(event, webContents, url, error, certificate, callback) {
160160
if (url == "https://github.com") {
161161
// Verification logic.
162162
event.preventDefault();

0 commit comments

Comments
 (0)