From cc0cb3c426a66b96cdd01a1b5ba22789612fdaae Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:52:26 -0300 Subject: [PATCH] Fixed #2903 --- _includes/scripts/wechatModal.liquid | 32 +++++++++++++--------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/_includes/scripts/wechatModal.liquid b/_includes/scripts/wechatModal.liquid index 51e9b2b..aea2e04 100644 --- a/_includes/scripts/wechatModal.liquid +++ b/_includes/scripts/wechatModal.liquid @@ -1,20 +1,18 @@ -{% if site.wechat_qr %} - + - -{% endif %} + } + + window.onclick = function (event) { + if (event.target == wechatModal) { + wechatModal.style.display = 'none'; + } + }; +