Skip to content

Commit

Permalink
Do not use iframe in admin-nf.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Sep 23, 2024
1 parent c597eb5 commit 0fa3ba9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/js/admin-nf.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ document.addEventListener( 'DOMContentLoaded', function() {
const callback = ( mutationList ) => {
for ( const mutation of mutationList ) {
[ ...mutation.addedNodes ].map( ( node ) => {
if (
document.querySelector( '.h-captcha' ) &&
! document.querySelector( '.h-captcha iframe' )
) {
const hCaptcha = document.querySelector( '.h-captcha' );

if ( hCaptcha && hCaptcha.innerHTML.trim() === '' ) {
window.hCaptchaBindEvents();
}

Expand Down

0 comments on commit 0fa3ba9

Please sign in to comment.