diff options
author | 2019-10-19 22:30:15 +0200 | |
---|---|---|
committer | 2019-10-19 22:30:15 +0200 | |
commit | d8db8704169d0f7a81b4512a7dad2486acc99eba (patch) | |
tree | 8a89d55d914191b9aea44e1567670e275d9e543c /src/webview | |
parent | Use electron-spellchecker instead of electron-hunspell (diff) | |
download | ferdium-app-d8db8704169d0f7a81b4512a7dad2486acc99eba.tar.gz ferdium-app-d8db8704169d0f7a81b4512a7dad2486acc99eba.tar.zst ferdium-app-d8db8704169d0f7a81b4512a7dad2486acc99eba.zip |
Fix lint
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/spellchecker.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js index 2062429fd..47fc6dcd1 100644 --- a/src/webview/spellchecker.js +++ b/src/webview/spellchecker.js | |||
@@ -1,5 +1,5 @@ | |||
1 | import { webFrame } from 'electron'; | 1 | import { webFrame } from 'electron'; |
2 | import {SpellCheckHandler, ContextMenuListener, ContextMenuBuilder} from 'electron-spellchecker'; | 2 | import { SpellCheckHandler, ContextMenuListener, ContextMenuBuilder } from 'electron-spellchecker'; |
3 | 3 | ||
4 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 4 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |
5 | 5 | ||
@@ -48,6 +48,7 @@ export default async function initialize(languageCode = 'en-us') { | |||
48 | switchDict(locale); | 48 | switchDict(locale); |
49 | 49 | ||
50 | contextMenuBuilder = new ContextMenuBuilder(handler); | 50 | contextMenuBuilder = new ContextMenuBuilder(handler); |
51 | // eslint-disable-next-line no-new | ||
51 | new ContextMenuListener((info) => { | 52 | new ContextMenuListener((info) => { |
52 | contextMenuBuilder.showPopupMenu(info); | 53 | contextMenuBuilder.showPopupMenu(info); |
53 | }); | 54 | }); |