aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r--src/webview/recipe.js11
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
24import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker'; 24import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker';
25import { injectDarkModeStyle, isDarkModeStyleInjected, removeDarkModeStyle } from './darkmode'; 25import { injectDarkModeStyle, isDarkModeStyleInjected, removeDarkModeStyle } from './darkmode';
26import contextMenu from './contextMenu';
27import './notifications'; 26import './notifications';
28 27
29import { DEFAULT_APP_SETTINGS } from '../config'; 28import { 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