Skip to content

Commit

Permalink
fix: Misfunction of wechat_qr in Social Integration (#2831)
Browse files Browse the repository at this point in the history
Solve the bug issue (#2830)
  • Loading branch information
yinhanyan authored Nov 10, 2024
1 parent 3d8b29c commit 587f03a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions _includes/scripts/wechatModal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

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

0 comments on commit 587f03a

Please sign in to comment.