Skip to content

Commit

Permalink
Merge pull request #335 from hlxsites/334-onetrust-entity
Browse files Browse the repository at this point in the history
334-onetrust-entity
  • Loading branch information
davenichols-DHLS authored Jan 14, 2025
2 parents b59e8bc + 06e8611 commit 5c3c0e1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/ccpa-notice/ccpa-notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export default function decorate(block) {
});
}

if (opCoDetails.OpCoEntity) {
const opcoEntityElements = document.getElementsByClassName('OpCoEntity');
Array.from(opcoEntityElements).forEach((el) => {
el.innerHTML = opCoDetails.OpCoEntity;
});
}

if (opCoDetails.OpCoEmail) {
const opcoEmailElements = document.getElementsByClassName('OpCoEmail');
Array.from(opcoEmailElements).forEach((el) => {
Expand Down
7 changes: 7 additions & 0 deletions blocks/one-trust/one-trust.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export default function decorate(block) {
});
}

if (opCoDetails.OpCoEntity) {
const opcoEntityElements = document.getElementsByClassName('OpCoEntity');
Array.from(opcoEntityElements).forEach((el) => {
el.innerHTML = opCoDetails.OpCoEntity;
});
}

if (opCoDetails.OpCoEmail) {
const opcoEmailElements = document.getElementsByClassName('OpCoEmail');
Array.from(opcoEmailElements).forEach((el) => {
Expand Down
7 changes: 7 additions & 0 deletions blocks/privacy-policy/privacy-policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export default function decorate(block) {
});
}

if (opCoDetails.OpCoEntity) {
const opcoEntityElements = document.getElementsByClassName('OpCoEntity');
Array.from(opcoEntityElements).forEach((el) => {
el.innerHTML = opCoDetails.OpCoEntity;
});
}

if (opCoDetails.OpCoEmail) {
const opcoEmailElements = document.getElementsByClassName('OpCoEmail');
Array.from(opcoEmailElements).forEach((el) => {
Expand Down

0 comments on commit 5c3c0e1

Please sign in to comment.