aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/spellchecker.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 20:25:42 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 20:25:42 +0100
commitbaf7d60af40e9cc3ce5403c5e109331098d5e1d6 (patch)
tree1973e6304b04088dc6ff9324b7e73fb52c400c9e /src/webview/spellchecker.js
parentUpdate package-lock.json (diff)
downloadferdium-app-baf7d60af40e9cc3ce5403c5e109331098d5e1d6.tar.gz
ferdium-app-baf7d60af40e9cc3ce5403c5e109331098d5e1d6.tar.zst
ferdium-app-baf7d60af40e9cc3ce5403c5e109331098d5e1d6.zip
feat(Service): Add option to change spellchecking language by service
Diffstat (limited to 'src/webview/spellchecker.js')
-rw-r--r--src/webview/spellchecker.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js
index ab0cc9a90..f1bae1cd7 100644
--- a/src/webview/spellchecker.js
+++ b/src/webview/spellchecker.js
@@ -13,9 +13,7 @@ let _isEnabled = false;
13 13
14async function loadDictionary(locale) { 14async function loadDictionary(locale) {
15 try { 15 try {
16 // Replacing app.asar is not beautiful but unforunately necessary
17 const fileLocation = path.join(DICTIONARY_PATH, `hunspell-dict-${locale}/${locale}`); 16 const fileLocation = path.join(DICTIONARY_PATH, `hunspell-dict-${locale}/${locale}`);
18 console.log(fileLocation, __dirname);
19 await provider.loadDictionary(locale, `${fileLocation}.dic`, `${fileLocation}.aff`); 17 await provider.loadDictionary(locale, `${fileLocation}.dic`, `${fileLocation}.aff`);
20 } catch (err) { 18 } catch (err) {
21 console.error('Could not load dictionary', err); 19 console.error('Could not load dictionary', err);