aboutsummaryrefslogtreecommitdiff
path: root/javascript/token-counters.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/token-counters.js')
-rw-r--r--javascript/token-counters.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/token-counters.js b/javascript/token-counters.js
index 710345eb..2ecc7d91 100644
--- a/javascript/token-counters.js
+++ b/javascript/token-counters.js
@@ -60,7 +60,7 @@ function setupTokenCounting(id, id_counter, id_button) {
prompt.parentElement.insertBefore(counter, prompt);
prompt.parentElement.style.position = "relative";
- func = onEdit(id, textarea, 800, function() {
+ var func = onEdit(id, textarea, 800, function() {
gradioApp().getElementById(id_button)?.click();
});
promptTokenCountUpdateFunctions[id] = func;