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) {