mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-30 04:14:17 +01:00
Lint
This commit is contained in:
parent
98a7508a99
commit
0816ecedb7
|
|
@ -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…
Reference in a new issue