diff options
Diffstat (limited to 'src')
-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 | }); |