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.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js
index d7c917326..58a04b728 100644
--- a/src/webview/spellchecker.js
+++ b/src/webview/spellchecker.js
@@ -1,12 +1,10 @@
1import { 1import { getCurrentWebContents } from '@electron/remote';
2 remote,
3} from 'electron';
4import { SPELLCHECKER_LOCALES } from '../i18n/languages'; 2import { SPELLCHECKER_LOCALES } from '../i18n/languages';
5import { isMac } from '../environment'; 3import { isMac } from '../environment';
6 4
7const debug = require('debug')('Ferdi:spellchecker'); 5const debug = require('debug')('Ferdi:spellchecker');
8 6
9const webContents = remote.getCurrentWebContents(); 7const webContents = getCurrentWebContents();
10const [defaultLocale] = webContents.session.getSpellCheckerLanguages(); 8const [defaultLocale] = webContents.session.getSpellCheckerLanguages();
11debug('Spellchecker default locale is', defaultLocale); 9debug('Spellchecker default locale is', defaultLocale);
12 10