fix: Misfunction of wechat_qr in Social Integration (#2831)

Solve the bug issue (#2830)
This commit is contained in:
Hanyan Yin 2024-11-11 00:28:15 +08:00 committed by GitHub
parent 3d8b29c6c7
commit 587f03a234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,13 @@
<script>
var wechatModal = document.getElementById('WeChatMod');
var wechatBtn = document.getElementById('WeChatBtn');
var wechatBtn = document.querySelectorAll('[id="WeChatBtn"]');
wechatBtn.onclick = function () {
for (var i = 0; i < wechatBtn.length; i++) {
wechatBtn[i].onclick = function () {
wechatModal.style.display = 'block';
};
}
window.onclick = function (event) {
if (event.target == wechatModal) {