diff options
author | 2020-03-02 13:57:49 +0100 | |
---|---|---|
committer | 2020-03-02 13:57:49 +0100 | |
commit | 7cc26c9b84191e9ecff0866a7b5d5248bb4207b1 (patch) | |
tree | d18858559d8aad6c881c65e7b309d19686cba2db /src/webview/recipe.js | |
parent | New Crowdin translations (#420) (diff) | |
parent | Run linter (diff) | |
download | ferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.tar.gz ferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.tar.zst ferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.zip |
Merge pull request #419 from getferdi/fix/context-menu
Fix and enhance context menu
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 1a22542d8..07d29f477 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -23,7 +23,6 @@ import RecipeWebview from './lib/RecipeWebview'; | |||
23 | 23 | ||
24 | import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker'; | 24 | import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker'; |
25 | import { injectDarkModeStyle, isDarkModeStyleInjected, removeDarkModeStyle } from './darkmode'; | 25 | import { injectDarkModeStyle, isDarkModeStyleInjected, removeDarkModeStyle } from './darkmode'; |
26 | import contextMenu from './contextMenu'; | ||
27 | import './notifications'; | 26 | import './notifications'; |
28 | 27 | ||
29 | import { DEFAULT_APP_SETTINGS } from '../config'; | 28 | import { DEFAULT_APP_SETTINGS } from '../config'; |
@@ -72,15 +71,7 @@ class RecipeController { | |||
72 | 71 | ||
73 | debug('Send "hello" to host'); | 72 | debug('Send "hello" to host'); |
74 | setTimeout(() => ipcRenderer.sendToHost('hello'), 100); | 73 | setTimeout(() => ipcRenderer.sendToHost('hello'), 100); |
75 | 74 | await spellchecker(); | |
76 | this.spellcheckingProvider = await spellchecker(); | ||
77 | contextMenu( | ||
78 | this.spellcheckingProvider, | ||
79 | () => this.settings.app.enableSpellchecking, | ||
80 | () => this.settings.app.spellcheckerLanguage, | ||
81 | () => this.spellcheckerLanguage, | ||
82 | ); | ||
83 | |||
84 | autorun(() => this.update()); | 75 | autorun(() => this.update()); |
85 | } | 76 | } |
86 | 77 | ||