diff options
author | 2019-06-25 13:00:16 +0200 | |
---|---|---|
committer | 2019-06-25 13:00:16 +0200 | |
commit | c1e592e6f530eadf730a77e4fa551f4eb0dbf337 (patch) | |
tree | 4bf073bd1306fd1e1a62be59fe8ecb661ae91590 /src/webview/contextMenu.js | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-app-c1e592e6f530eadf730a77e4fa551f4eb0dbf337.tar.gz ferdium-app-c1e592e6f530eadf730a77e4fa551f4eb0dbf337.tar.zst ferdium-app-c1e592e6f530eadf730a77e4fa551f4eb0dbf337.zip |
Revert: fix spellchecker
Diffstat (limited to 'src/webview/contextMenu.js')
-rw-r--r-- | src/webview/contextMenu.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js index 967e8e667..a4a6ab899 100644 --- a/src/webview/contextMenu.js +++ b/src/webview/contextMenu.js | |||
@@ -280,13 +280,12 @@ const buildMenuTpl = (props, suggestions, isSpellcheckEnabled, defaultSpellcheck | |||
280 | }; | 280 | }; |
281 | 281 | ||
282 | export default function contextMenu(spellcheckProvider, isSpellcheckEnabled, getDefaultSpellcheckerLanguage, getSpellcheckerLanguage) { | 282 | export default function contextMenu(spellcheckProvider, isSpellcheckEnabled, getDefaultSpellcheckerLanguage, getSpellcheckerLanguage) { |
283 | webContents.on('context-menu', async (e, props) => { | 283 | webContents.on('context-menu', (e, props) => { |
284 | e.preventDefault(); | 284 | e.preventDefault(); |
285 | 285 | ||
286 | let suggestions = []; | 286 | let suggestions = []; |
287 | if (spellcheckProvider && props.misspelledWord) { | 287 | if (spellcheckProvider && props.misspelledWord) { |
288 | debug('Mispelled word', props.misspelledWord); | 288 | suggestions = spellcheckProvider.getSuggestion(props.misspelledWord); |
289 | suggestions = await spellcheckProvider.getSuggestion(props.misspelledWord); | ||
290 | 289 | ||
291 | debug('Suggestions', suggestions); | 290 | debug('Suggestions', suggestions); |
292 | } | 291 | } |