📝 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:
parent
139a4f984a
commit
f1b184ef78
23 changed files with 64 additions and 67 deletions
|
@ -59,7 +59,7 @@ An example of using [node-spellchecker][spellchecker] as provider:
|
|||
|
||||
```javascript
|
||||
webFrame.setSpellCheckProvider('en-US', true, {
|
||||
spellCheck: function(text) {
|
||||
spellCheck(text) {
|
||||
return !(require('spellchecker').isMisspelled(text));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue