From 961ee5a4d914e9195ef731c86d6f3b28295c7590 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 17 Nov 2015 21:41:36 +0800 Subject: [PATCH] Rename verify-certificate to untrusted-certificate --- atom/browser/api/atom_api_session.cc | 2 +- docs/api/session.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_session.cc b/atom/browser/api/atom_api_session.cc index c75bf9dd0bcc..6527f67ab3f1 100644 --- a/atom/browser/api/atom_api_session.cc +++ b/atom/browser/api/atom_api_session.cc @@ -265,7 +265,7 @@ Session::~Session() { void Session::RequestCertVerification( const scoped_refptr& request) { bool prevent_default = Emit( - "verify-certificate", + "untrusted-certificate", request->args().hostname, request->args().cert, base::Bind(&PassVerificationResult, request)); diff --git a/docs/api/session.md b/docs/api/session.md index cd802f34b20a..e385e222d529 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -34,7 +34,7 @@ session.on('will-download', function(event, item, webContents) { }); ``` -### Event: 'verify-certificate' +### Event: 'untrusted-certificate' * `event` Event * `hostname` String