diff --git a/src/client.js b/src/client.js index 469a169..913c4d9 100644 --- a/src/client.js +++ b/src/client.js @@ -142,8 +142,9 @@ window.onCaptcha = async function onCaptcha(token: string) { if (typeof window.hcaptcha !== 'undefined') { window.hcaptcha.reset(); - const body = document.getElementsByTagName("BODY")[0]; - body.style.overflow = 'hidden'; + const domBody = document.getElementsByTagName('BODY')[0]; + domBody.style.overflowY = null; + domBody.style.overflow = 'hidden'; } else { window.grecaptcha.reset(); }