From baf7d60af40e9cc3ce5403c5e109331098d5e1d6 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 7 Dec 2018 20:25:42 +0100 Subject: feat(Service): Add option to change spellchecking language by service --- src/webview/spellchecker.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/webview/spellchecker.js') 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; async function loadDictionary(locale) { try { - // Replacing app.asar is not beautiful but unforunately necessary const fileLocation = path.join(DICTIONARY_PATH, `hunspell-dict-${locale}/${locale}`); - console.log(fileLocation, __dirname); await provider.loadDictionary(locale, `${fileLocation}.dic`, `${fileLocation}.aff`); } catch (err) { console.error('Could not load dictionary', err); -- cgit v1.2.3-54-g00ecf