aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/spellchecker.js
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-27 22:50:29 +0700
committerLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-27 22:50:29 +0700
commit52264e095b7f05677291013758680cd961e2c99d (patch)
tree90e9538ea92b523cf59a49318029345594c1c0cb /src/webview/spellchecker.js
parentAdd adaptableDarkMode to DEFAULT_APP_SETTINGS (diff)
downloadferdium-app-52264e095b7f05677291013758680cd961e2c99d.tar.gz
ferdium-app-52264e095b7f05677291013758680cd961e2c99d.tar.zst
ferdium-app-52264e095b7f05677291013758680cd961e2c99d.zip
#220 Add setTimeout for spellchecker's attachToInput call
Diffstat (limited to 'src/webview/spellchecker.js')
-rw-r--r--src/webview/spellchecker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js
index 47fc6dcd1..8a1c8782b 100644
--- a/src/webview/spellchecker.js
+++ b/src/webview/spellchecker.js
@@ -40,7 +40,7 @@ export async function switchDict(locale) {
40export default async function initialize(languageCode = 'en-us') { 40export default async function initialize(languageCode = 'en-us') {
41 try { 41 try {
42 handler = new SpellCheckHandler(); 42 handler = new SpellCheckHandler();
43 handler.attachToInput(); 43 setTimeout(() => handler.attachToInput(), 1000);
44 const locale = languageCode.toLowerCase(); 44 const locale = languageCode.toLowerCase();
45 45
46 debug('Init spellchecker'); 46 debug('Init spellchecker');