Skip to content

Commit

Permalink
TDW-2409 lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 17, 2024
1 parent 6e1e9f1 commit ab7758b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blocks/marketing/marketing.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ export default async function decorate(block) {
}
} else {
window.tude.setFeatureFlags({ injectAds: false });
const ad_test = new URLSearchParams(window.location.search).get('ad_test');
if(ad_test) {
const adTest = new URLSearchParams(window.location.search).get('ad_test');
if (adTest) {
window.tude.refreshAdsViaDivMappings([{
divId: slot,
baseDivId: slot,
targeting: {
ad_test: ad_test
}
ad_test: adTest,
},
}]);
} else {
window.tude.refreshAdsViaDivMappings([{
Expand Down

0 comments on commit ab7758b

Please sign in to comment.