Skip to content

Commit 0c7e2df

Browse files
committed
Cleanup
1 parent 9145bb4 commit 0c7e2df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/searxng.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
};
5252

5353
const detectLang = query => {
54-
const detection = detectAll(query, { only: ['en', 'ru'] });
55-
console.log('langs', detection)
56-
const good = detection.filter(item => item.accuracy > 0.01);
54+
const all = detectAll(query, { only: ['en', 'ru'] });
55+
console.log('detected languages', all)
56+
const good = all.filter(i => i.accuracy > 0.01);
5757
let lang = 'en';
5858
if (good.length > 0) {
5959
good.sort((a, b) => b.accuracy - a.accuracy);

0 commit comments

Comments
 (0)