aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/spellchecker.js
diff options
context:
space:
mode:
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);