diff options
author | 2019-02-07 20:51:48 +0100 | |
---|---|---|
committer | 2019-02-07 20:51:48 +0100 | |
commit | 3e0e220908f137344f423a80958ca8672fbf64c1 (patch) | |
tree | 12314fda335dc677f590843d6308e7ef2575920b /src/webview | |
parent | improved fuzzy search (diff) | |
download | ferdium-app-3e0e220908f137344f423a80958ca8672fbf64c1.tar.gz ferdium-app-3e0e220908f137344f423a80958ca8672fbf64c1.tar.zst ferdium-app-3e0e220908f137344f423a80958ca8672fbf64c1.zip |
set trigger threshhold to 40 characters
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 38a65276e..fa107ba1a 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -63,8 +63,6 @@ class RecipeController { | |||
63 | 63 | ||
64 | autorun(() => this.update()); | 64 | autorun(() => this.update()); |
65 | 65 | ||
66 | console.log(JSON.parse(JSON.stringify(this.settings))); | ||
67 | |||
68 | const cldFactory = await loadModule(); | 66 | const cldFactory = await loadModule(); |
69 | const identifier = cldFactory.create(0, 1000); | 67 | const identifier = cldFactory.create(0, 1000); |
70 | 68 | ||
@@ -79,7 +77,7 @@ class RecipeController { | |||
79 | } | 77 | } |
80 | 78 | ||
81 | // Force a minimum length to get better detection results | 79 | // Force a minimum length to get better detection results |
82 | if (value.length < 30) return; | 80 | if (value.length < 40) return; |
83 | 81 | ||
84 | debug('Detecting language for', value); | 82 | debug('Detecting language for', value); |
85 | const findResult = identifier.findLanguage(value); | 83 | const findResult = identifier.findLanguage(value); |