From 6cc0a63b94dce493fc9d57347c6d41b32a567ecc Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 14 Oct 2024 22:43:20 +0200 Subject: [PATCH] log statement commented out --- customprompts/mzta-custom-prompts.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/customprompts/mzta-custom-prompts.js b/customprompts/mzta-custom-prompts.js index 6e72b4a3..294d6d76 100644 --- a/customprompts/mzta-custom-prompts.js +++ b/customprompts/mzta-custom-prompts.js @@ -682,10 +682,11 @@ function textareaAutocomplete(textarea, suggestions) { const lastWord = match[0]; const tr = textarea.parentNode.parentNode.parentNode; let type = tr.querySelector('.type_output').value - console.log(">>>>>>>>> type: " + type); + // console.log(">>>>>>>>> type: " + type); + // console.log(">>>>>>>>> suggestions: " + JSON.stringify(suggestions)); + // console.log(">>>>>>>>> lastWord: " + lastWord); const matches = suggestions.filter(s => s.command.startsWith(lastWord) && (String(s.type) == String(type) || String(s.type) == '0' )).map(s => s.command); - // const matches = suggestions.filter(s => s.startsWith(lastWord)); - console.log(">>>>>>>>> matches: " + JSON.stringify(matches)); + // console.log(">>>>>>>>> matches: " + JSON.stringify(matches)); showSuggestions(matches, autocompleteList); } else { hideSuggestions(autocompleteList);