diff options
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/gui/client/static/js/chat.v1.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index 8402744e..da990024 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -109,19 +109,6 @@ const register_message_buttons = async () => { }) } }); - document.querySelectorAll(".message .fa-clipboard").forEach(async (el) => { - if (!("click" in el.dataset)) { - el.dataset.click = "true"; - el.addEventListener("click", async () => { - const message_el = el.parentElement.parentElement.parentElement; - const copyText = await get_message(window.conversation_id, message_el.dataset.index); - navigator.clipboard.writeText(copyText); - el.classList.add("clicked"); - setTimeout(() => el.classList.remove("clicked"), 1000); - }) - } - }); - document.querySelectorAll(".message .fa-clipboard").forEach(async (el) => { if (!("click" in el.dataset)) { |