diff --git a/docs/api/session.md b/docs/api/session.md index aeda16d38b0c..029b18787cc0 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -276,7 +276,7 @@ let win = new BrowserWindow() win.webContents.session.setCertificateVerifyProc((request, callback) => { const {hostname} = request - if(hostname === 'github.com') { + if (hostname === 'github.com') { callback(0) } else { callback(-2)