This commit is contained in:
oobabooga 2025-05-31 22:24:39 -07:00
parent 98a7508a99
commit 0816ecedb7

View file

@ -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(/(\(.*?\))/);