From 04eacf66cdd42579691a3fd7d2eb1721302529b8 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 26 Nov 2023 14:58:07 +0600 Subject: [PATCH] Fixed an error with successful verification after updating the captcha. --- exmplate/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exmplate/script.js b/exmplate/script.js index d31dcf1..8881d22 100644 --- a/exmplate/script.js +++ b/exmplate/script.js @@ -48,7 +48,7 @@ }); windowCaptcha.querySelector('button.window-captcha__reload').addEventListener('click', function () { - actionGetCaptcha(windowCaptcha, domain, token); + actionGetCaptcha(windowCaptcha, domain, token, shadow); }); return windowCaptcha; @@ -175,7 +175,6 @@ setError('Произошла ошибка!', button); return } - shadow.querySelector('button.button-open-window-captcha').remove(); let captchaVerified = document.createElement('div'); captchaVerified.innerHTML = `Ура!!! Проверку прошли!`;