From dfc56ea48e0ede3ec52c35cc642527379a806f52 Mon Sep 17 00:00:00 2001 From: Fedik Date: Fri, 18 Oct 2024 14:07:29 +0300 Subject: [PATCH] Fix getElementsByClassName().forEach is not a function --- .../plg_captcha_recaptcha_invisible/js/recaptcha.es6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/media_source/plg_captcha_recaptcha_invisible/js/recaptcha.es6.js b/build/media_source/plg_captcha_recaptcha_invisible/js/recaptcha.es6.js index a66792e323779..a4b05dbacd047 100644 --- a/build/media_source/plg_captcha_recaptcha_invisible/js/recaptcha.es6.js +++ b/build/media_source/plg_captcha_recaptcha_invisible/js/recaptcha.es6.js @@ -10,7 +10,7 @@ window.JoomlainitReCaptchaInvisible = () => { const optionKeys = ['sitekey', 'badge', 'size', 'tabindex', 'callback', 'expired-callback', 'error-callback']; - document.getElementsByClassName('g-recaptcha').forEach((element) => { + document.querySelectorAll('.g-recaptcha').forEach((element) => { let options = {}; if (element.dataset) {