Skip to content

Commit

Permalink
chore: Comment out some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
PLNech committed Sep 1, 2024
1 parent d065a25 commit 10ebd40
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/sound-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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)
}
)
Expand Down

0 comments on commit 10ebd40

Please sign in to comment.