From 89b5a6353ed7a83bd388b01da523b52774cb7cc5 Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Thu, 24 Oct 2024 12:47:07 +0200 Subject: Update chat.v1.js --- g4f/gui/client/static/js/chat.v1.js | 13 ------------- 1 file changed, 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)) { -- cgit v1.2.3