Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update setCertificateVerifyProc example #8731

Merged
merged 2 commits into from Feb 22, 2017
Merged

update setCertificateVerifyProc example #8731

merged 2 commits into from Feb 22, 2017

Conversation

herrmannplatz
Copy link
Contributor

setCertificateVerifyProc example should reflect new api

setCertificateVerifyProc example should reflect new api
@herrmannplatz
Copy link
Contributor Author

Not sure whether shorthand if should be used or not.

callback(hostname === 'github.com')
win.webContents.session.setCertificateVerifyProc((request, callback) => {
const {hostname} = request
if(hostname === 'github.com') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space needed after if, it is currently failing on CI due to linting:

  api/session.md
         279:3:    Expected space(s) after "if".

@kevinsawicki kevinsawicki merged commit 85bdce0 into electron:master Feb 22, 2017
@kevinsawicki
Copy link
Contributor

Thanks @herrmannplatz 👍 🚀

@herrmannplatz
Copy link
Contributor Author

merci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants