diff --git a/blocks/ccpa-notice/ccpa-notice.js b/blocks/ccpa-notice/ccpa-notice.js index 1159f49..e1de30a 100644 --- a/blocks/ccpa-notice/ccpa-notice.js +++ b/blocks/ccpa-notice/ccpa-notice.js @@ -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) => { diff --git a/blocks/one-trust/one-trust.js b/blocks/one-trust/one-trust.js index 190e0a3..bea286c 100644 --- a/blocks/one-trust/one-trust.js +++ b/blocks/one-trust/one-trust.js @@ -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) => { diff --git a/blocks/privacy-policy/privacy-policy.js b/blocks/privacy-policy/privacy-policy.js index 65b7057..9849145 100644 --- a/blocks/privacy-policy/privacy-policy.js +++ b/blocks/privacy-policy/privacy-policy.js @@ -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) => {