aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-03-02 13:57:49 +0100
committerLibravatar GitHub <noreply@github.com>2020-03-02 13:57:49 +0100
commit7cc26c9b84191e9ecff0866a7b5d5248bb4207b1 (patch)
treed18858559d8aad6c881c65e7b309d19686cba2db /src/webview/recipe.js
parentNew Crowdin translations (#420) (diff)
parentRun linter (diff)
downloadferdium-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.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