Skip to content

Commit

Permalink
Update docs and electron-typescript-definitions module
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Sep 23, 2018
1 parent e87a0dc commit 2692ec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
12 changes: 4 additions & 8 deletions docs/api/web-frame.md
Expand Up @@ -76,18 +76,14 @@ with an array of misspelt words when complete.
An example of using [node-spellchecker][spellchecker] as provider:

```javascript
const {webFrame} = require('electron')
const { webFrame } = require('electron')
const spellChecker = require('spellchecker')
webFrame.setSpellCheckProvider('en-US', {
spellCheck (words, callback) {
setTimeout(() => {
let misspeltWords = []
for (let word of words) {
if (spellChecker.isMisspelled(word)) {
misspeltWords.push(word)
}
}
callback(misspeltWords)
const spellchecker = require('spellchecker')
const misspelled = words.filter(x => spellchecker.isMisspelled(x))
callback(misspelled)
}, 0)
}
})
Expand Down
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"dugite": "^1.45.0",
"electabul": "~0.0.4",
"electron-docs-linter": "^2.4.0",
"electron-typescript-definitions": "electron/electron-typescript-definitions#a23ac4b",
"electron-typescript-definitions": "electron/electron-typescript-definitions#7aa97ef",
"eslint": "^5.6.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-mocha": "^5.2.0",
Expand Down

0 comments on commit 2692ec1

Please sign in to comment.