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

XFEstudio/gpt4free

Improve qrcode status link

9a44f142
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -2
Modified g4f/gui/client/qrcode.html +4 -2
@@ -27,7 +27,7 @@
27 27
28 28 <h2>QR Code</h2>
29 29 <div id="qrcode"></div>
30 <p id="qrcode-status"></p>
30 <p><a id="qrcode-status"></a></p>
31 31 <button id="generateQRCode">Generate QR Code</button>
32 32
33 33 <script type="module">
@@ -87,7 +87,9 @@
87 87 body: localStorage.getItem(`conversation:${conversation_id}`)
88 88 });
89 89 const share = `${share_url}/chat/${encodeURI(chat_id)}/${encodeURI(conversation_id)}`;
90 document.getElementById('qrcode-status').innerText = share;
90 const qrcodeStatus = document.getElementById('qrcode-status');
91 qrcodeStatus.innerText = share;
92 qrcodeStatus.href = share;
91 93 document.getElementById("qrcode").innerHTML = '';
92 94 const qrcode = new QRCode(
93 95 document.getElementById("qrcode"),