From 10ebd4082c18d6a8d84c279bfd4e6fc1b029374c Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Sun, 1 Sep 2024 16:41:24 +0200 Subject: [PATCH] chore: Comment out some debug prints --- lib/sound-browser.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/sound-browser.js b/lib/sound-browser.js index 7a53d23..51a3a48 100644 --- a/lib/sound-browser.js +++ b/lib/sound-browser.js @@ -196,8 +196,9 @@ export default class SoundBrowser { let searchText = e.target.value let samples = document.getElementsByClassName("tidal-sample") let dirs = document.getElementsByClassName("tidal-dir") - console.log("Q: ", searchText, "L(D)=", dirs.length, "L(S)=", samples.length); - if (searchText.length < 2) { + // DEBUG PRINT: Helps see when query is received + // console.log("Q: ", searchText, "L(D)=", dirs.length, "L(S)=", samples.length); + if (searchText.length < 2 && searchText != " ") { console.error("DEBOUNCE: Ignoring tiny query ", searchText, ".") return } @@ -207,13 +208,13 @@ export default class SoundBrowser { ) console.timeEnd('samples'); console.time('dirs'); - var printed=0; + // var printed=0; Array.from(dirs).forEach( (dir) => { - if (printed++ < 3) { - console.log(`Processing ${dir}...`); - console.log(dir); - } + // if (printed++ < 3) { + // console.log(`Processing ${dir}...`); + // console.log(dir); + // } filterEmptyDir(dir) } )