fix eslint errors

also hide overflow-y from body after hcaptcha execution
This commit is contained in:
HF 2020-05-16 18:19:03 +02:00
parent 4a58412ca6
commit 3b2cb0bb15

View File

@ -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();
}