diff --git a/_includes/scripts/wechatModal.liquid b/_includes/scripts/wechatModal.liquid index 51e9b2b2c27d..aea2e047e133 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'; + } + }; +