fix typo in jp docs

This commit is contained in:
Zeke Sikelianos 2017-06-10 12:21:53 -07:00
parent a6ea316a5d
commit 18dec9c39c

View file

@ -134,7 +134,7 @@ Windowsでは、ファイルパスを取得するために、 `process.argv` を
`url``certificate` 検証に失敗したときに発生します。証明書を信頼するために`event.preventDefault()``callback(true)`をコールして既定の動作を止める必要があります。 `url``certificate` 検証に失敗したときに発生します。証明書を信頼するために`event.preventDefault()``callback(true)`をコールして既定の動作を止める必要があります。
```javascript ```javascript
session.on('certificate-error', function (event, webContents, url, error, certificate, callback) { app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
if (url === 'https://github.com') { if (url === 'https://github.com') {
// Verification logic. // Verification logic.
event.preventDefault() event.preventDefault()