mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -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);
|
menu.appendChild(thisButton);
|
||||||
|
|
||||||
// Only apply transformations to button elements
|
// Only apply transformations to button elements
|
||||||
if (thisButton.tagName.toLowerCase() === 'button') {
|
if (thisButton.tagName.toLowerCase() === "button") {
|
||||||
thisButton.addEventListener("click", () => {
|
thisButton.addEventListener("click", () => {
|
||||||
hideMenu();
|
hideMenu();
|
||||||
});
|
});
|
||||||
|
|
||||||
const buttonText = thisButton.textContent;
|
const buttonText = thisButton.textContent;
|
||||||
const matches = buttonText.match(/(\(.*?\))/);
|
const matches = buttonText.match(/(\(.*?\))/);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue