📝 Fix code style issue

* Change `var` to `let`.
* Change `function() {}` to `() => {}`.
* Use shorthand function syntax on object notation.
* Remove spaces between object notation brackets.
* Small fixes.
This commit is contained in:
Plusb Preco 2016-05-11 02:15:09 +09:00
parent 139a4f984a
commit f1b184ef78
23 changed files with 64 additions and 67 deletions

View file

@ -176,7 +176,7 @@ certificate you should prevent the default behavior with
`event.preventDefault()` and call `callback(true)`.
```javascript
app.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') {
// Verification logic.
event.preventDefault();
@ -207,7 +207,7 @@ and `callback` needs to be called with an entry filtered from the list. Using
certificate from the store.
```javascript
app.on('select-client-certificate', function(event, webContents, url, list, callback) {
app.on('select-client-certificate', (event, webContents, url, list, callback) => {
event.preventDefault();
callback(list[0]);
});