summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/static/js/chat.v1.js
diff options
context:
space:
mode:
authorfoxfire52 <foxfire52@virgilio.it>2024-10-24 12:47:07 +0200
committerGitHub <noreply@github.com>2024-10-24 12:47:07 +0200
commit89b5a6353ed7a83bd388b01da523b52774cb7cc5 (patch)
treeb8bceb1df1314ee9c8318becbc3ea6fa2f706628 /g4f/gui/client/static/js/chat.v1.js
parentUpdate chat.v1.js (diff)
downloadgpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar.gz
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar.bz2
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar.lz
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar.xz
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.tar.zst
gpt4free-89b5a6353ed7a83bd388b01da523b52774cb7cc5.zip
Diffstat (limited to 'g4f/gui/client/static/js/chat.v1.js')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js13
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)) {