Skip to content

Commit

Permalink
Fix regression with theme activation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 26, 2024
1 parent a74a257 commit 1f03260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ const integrations = function( $ ) {
alt = alt.replace( ' Logo', '' );

const $tr = $target.closest( 'tr' );
let status = $tr.attr( 'class' );
status = status.replace( 'hcaptcha-integrations-', '' );
const match = $tr.attr( 'class' ).match( /hcaptcha-integrations-([a-z-]+)/ );
const status = match ? match[ 1 ] : '';

const $fieldset = $tr.find( 'fieldset' );
let title;
Expand Down

0 comments on commit 1f03260

Please sign in to comment.