Skip to content

Commit

Permalink
Fix undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Mar 6, 2024
1 parent 20ff3ae commit e8d655a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ var tarteaucitron = {

// allow gtag/googleads by default if consent mode is on
window.addEventListener('tac.root_available', function() {
if (tarteaucitron_block !== undefined) {
if (typeof tarteaucitron_block !== 'undefined') {
tarteaucitron_block.unblock(/www\.googletagmanager\.com\/gtag\/js/);
tarteaucitron_block.unblock(/www\.googleadservices\.com\/pagead\/conversion/);
tarteaucitron_block.unblock(/AW-/);
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit e8d655a

Please sign in to comment.