XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update chat.v1.js

89b5a635
foxfire52 <foxfire52@virgilio.it>
提交于

代码差异

1 个文件 +0 -13
Modified g4f/gui/client/static/js/chat.v1.js +0 -13
@@ -109,19 +109,6 @@ const register_message_buttons = async () => {
109 109 })
110 110 }
111 111 });
112 document.querySelectorAll(".message .fa-clipboard").forEach(async (el) => {
113 if (!("click" in el.dataset)) {
114 el.dataset.click = "true";
115 el.addEventListener("click", async () => {
116 const message_el = el.parentElement.parentElement.parentElement;
117 const copyText = await get_message(window.conversation_id, message_el.dataset.index);
118 navigator.clipboard.writeText(copyText);
119 el.classList.add("clicked");
120 setTimeout(() => el.classList.remove("clicked"), 1000);
121 })
122 }
123 });
124
125 112
126 113 document.querySelectorAll(".message .fa-clipboard").forEach(async (el) => {
127 114 if (!("click" in el.dataset)) {