Skip to content

Commit

Permalink
TDW-2409 changed conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 17, 2024
1 parent ab7758b commit ffd29c1
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions blocks/marketing/marketing.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,18 @@ export default async function decorate(block) {
document.addEventListener('scroll', checkBottomAdDisplay);
}
} else {
window.tude.setFeatureFlags({ injectAds: false });
window.tude.setFeatureFlags({injectAds: false});

Check failure on line 84 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

A space is required after '{'

Check failure on line 84 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

A space is required before '}'
const adTest = new URLSearchParams(window.location.search).get('ad_test');
if (adTest) {
window.tude.refreshAdsViaDivMappings([{
divId: slot,
baseDivId: slot,
targeting: {
ad_test: adTest,
},
}]);
} else {
window.tude.refreshAdsViaDivMappings([{
divId: slot,
baseDivId: slot,
}]);
const adMapping = {
divId: slot,
baseDivId: slot,
}

Check failure on line 89 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
if (adTest) adMapping.targeting = {

Check failure on line 90 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

Expected { after 'if' condition
ad_test: adTest,
}

Check failure on line 92 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
window.tude.refreshAdsViaDivMappings([
adMapping

Check failure on line 94 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

Missing trailing comma
]);
}
});
});
Expand Down

0 comments on commit ffd29c1

Please sign in to comment.