diff options
Diffstat (limited to 'src/webview/spellchecker.js')
-rw-r--r-- | src/webview/spellchecker.js | 6 |
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 @@ | |||
1 | import { | 1 | import { getCurrentWebContents } from '@electron/remote'; |
2 | remote, | ||
3 | } from 'electron'; | ||
4 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 2 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |
5 | import { isMac } from '../environment'; | 3 | import { isMac } from '../environment'; |
6 | 4 | ||
7 | const debug = require('debug')('Ferdi:spellchecker'); | 5 | const debug = require('debug')('Ferdi:spellchecker'); |
8 | 6 | ||
9 | const webContents = remote.getCurrentWebContents(); | 7 | const webContents = getCurrentWebContents(); |
10 | const [defaultLocale] = webContents.session.getSpellCheckerLanguages(); | 8 | const [defaultLocale] = webContents.session.getSpellCheckerLanguages(); |
11 | debug('Spellchecker default locale is', defaultLocale); | 9 | debug('Spellchecker default locale is', defaultLocale); |
12 | 10 | ||