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') {
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user