fix eslint errors
also hide overflow-y from body after hcaptcha execution
This commit is contained in:
parent
4a58412ca6
commit
3b2cb0bb15
|
@ -142,8 +142,9 @@ window.onCaptcha = async function onCaptcha(token: string) {
|
||||||
|
|
||||||
if (typeof window.hcaptcha !== 'undefined') {
|
if (typeof window.hcaptcha !== 'undefined') {
|
||||||
window.hcaptcha.reset();
|
window.hcaptcha.reset();
|
||||||
const body = document.getElementsByTagName("BODY")[0];
|
const domBody = document.getElementsByTagName('BODY')[0];
|
||||||
body.style.overflow = 'hidden';
|
domBody.style.overflowY = null;
|
||||||
|
domBody.style.overflow = 'hidden';
|
||||||
} else {
|
} else {
|
||||||
window.grecaptcha.reset();
|
window.grecaptcha.reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user