Skip to content

Commit

Permalink
Fix NF script issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jul 15, 2024
1 parent 4111cfc commit 07d40e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/hcaptcha-nf.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ document.addEventListener( 'DOMContentLoaded', function() {
$.ajaxPrefilter( function( options ) {
const data = options.data ?? '';

if ( ! ( typeof data === 'string' || data instanceof String ) ) {
return;
}

if ( ! data.startsWith( 'action=nf_ajax_submit' ) ) {
return;
}
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ Instructions for popular native integrations are below:

== Changelog ==

= 4.4.0 =
* Fixed conflict with Ninja Forms Upload field.

= 4.3.1 =
* Added a live form in the Contact Form 7 admin form view.
* Fixed warnings and deprecation messages in admin when Contact Form 7 is active.
Expand Down

0 comments on commit 07d40e9

Please sign in to comment.