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

XFEstudio/gpt4free

Update chat.v1.js

8d010d89
foxfire52 <foxfire52@virgilio.it>
提交于

代码差异

1 个文件 +4 -1
Modified g4f/gui/client/static/js/chat.v1.js +4 -1
@@ -115,7 +115,10 @@ const register_message_buttons = async () => {
115 115 const message_el = el.parentElement.parentElement.parentElement;
116 116 const copyText = await get_message(window.conversation_id, message_el.dataset.index);
117 117
118 try {
118 try {
119 if (!navigator.clipboard) {
120 throw new Error("navigator.clipboard: Clipboard API unavailable.");
121 }
119 122 await navigator.clipboard.writeText(copyText);
120 123 } catch (e) {
121 124 console.error(e);