mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
Lint
This commit is contained in:
parent
98a7508a99
commit
0816ecedb7
1 changed files with 2 additions and 2 deletions
|
@ -299,11 +299,11 @@ if (buttonsInChat.length > 0) {
|
|||
menu.appendChild(thisButton);
|
||||
|
||||
// Only apply transformations to button elements
|
||||
if (thisButton.tagName.toLowerCase() === 'button') {
|
||||
if (thisButton.tagName.toLowerCase() === "button") {
|
||||
thisButton.addEventListener("click", () => {
|
||||
hideMenu();
|
||||
});
|
||||
|
||||
|
||||
const buttonText = thisButton.textContent;
|
||||
const matches = buttonText.match(/(\(.*?\))/);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue