Skip to content

Commit

Permalink
Minor code formatting + added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
duracelltomi committed Apr 3, 2023
1 parent b50571c commit f6c2d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/gtm4wp-woocommerce-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ function gtm4wp_process_woocommerce_pages() {
}

const ctrl_key_pressed = e.ctrlKey || e.metaKey;
const target_new_tab = (matching_link_element.target === '_blank');
const target_new_tab = ( '_blank' === matching_link_element.target );

e.preventDefault();
if ( ctrl_key_pressed || target_new_tab ) {
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ https://gtm4wp.com/how-to-articles/how-to-exclude-admin-users-from-being-tracked
* Added: new advanced option to disable browser console.log() messages on frontend
* Added: new filter: gtm4wp_purchase_datalayer to be able to alter data layer content for the purchase data
* Added: new filter: gtm4wp_datalayer_on_pageload to be able to alter data layer content generated during page load
* Updated: WooCommerce integration will also check target attitbute of product links while firing select_item event, thanks [robklo])(https://github.com/robklo)

= 1.16.2 =

Expand Down

0 comments on commit f6c2d01

Please sign in to comment.