fixed question infinite click

This commit is contained in:
yoannchb-pro
2023-06-20 14:45:49 -04:00
parent e26422a4a3
commit e48e5e6785
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -411,6 +411,9 @@
});
return;
}
/* Better then set once on the event because if there is an error the user can click an other time on the question */
if (!config.infinite)
removeListener(hiddenButton);
const handlers = [
handleContentEditable,
handleTextbox,
@@ -424,9 +427,6 @@
}
/* In the case we can't auto complete the question */
handleClipboard(config, gptAnswer);
/* Better then set once on the event because if there is an error the user can click an other time on the question */
if (!config.infinite)
removeListener(hiddenButton);
});
}
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -78,6 +78,9 @@ async function reply(
return;
}
/* Better then set once on the event because if there is an error the user can click an other time on the question */
if (!config.infinite) removeListener(hiddenButton);
const handlers = [
handleContentEditable,
handleTextbox,
@@ -92,9 +95,6 @@ async function reply(
/* In the case we can't auto complete the question */
handleClipboard(config, gptAnswer);
/* Better then set once on the event because if there is an error the user can click an other time on the question */
if (!config.infinite) removeListener(hiddenButton);
}
export default reply;