Skip to content

Commit 42cdaab

Browse files
committed
tweak initial infoThresh in demo
1 parent 546059f commit 42cdaab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demos/compare.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,10 @@
378378

379379
let u = new uFuzzy(opts);
380380

381-
let infoThresh = 1e3;
381+
let infoThreshEl = document.getElementById('infoThresh');
382+
let infoThresh = +infoThreshEl.value;
382383

383-
document.getElementById('infoThresh').addEventListener('input', e => {
384+
infoThreshEl.addEventListener('input', e => {
384385
infoThresh = +e.target.value;
385386
ufSearch(e);
386387
});

0 commit comments

Comments
 (0)