diff options
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 | ||