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 ffd29c1 commit 5fc797f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions blocks/marketing/marketing.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,19 @@ export default async function decorate(block) {
document.addEventListener('scroll', checkBottomAdDisplay);
}
} else {
window.tude.setFeatureFlags({injectAds: false});
window.tude.setFeatureFlags({ injectAds: false });
const adTest = new URLSearchParams(window.location.search).get('ad_test');
const adMapping = {
divId: slot,
baseDivId: slot,
}
if (adTest) adMapping.targeting = {
ad_test: adTest,
};
if (adTest) {
adMapping.targeting = {
ad_test: adTest,
};
}
window.tude.refreshAdsViaDivMappings([
adMapping
adMapping,
]);
}
});
Expand Down

0 comments on commit 5fc797f

Please sign in to comment.