fix typo in jp docs
This commit is contained in:
parent
a6ea316a5d
commit
18dec9c39c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue