Skip to content

Commit

Permalink
Updated with OneTrust Entity (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS authored Dec 28, 2024
1 parent d54a918 commit 4459214
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/onetrust-ccpa/onetrust-ccpa.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/onetrust-cookie/onetrust-cookie.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/onetrust-privacy/onetrust-privacy.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 4459214

Please sign in to comment.