From 06e861161f2af2e241b58979586d6bcff7d2ff57 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Thu, 19 Dec 2024 14:25:42 +0000 Subject: [PATCH] Added OneTrust Entity --- blocks/ccpa-notice/ccpa-notice.js | 7 +++++++ blocks/one-trust/one-trust.js | 7 +++++++ blocks/privacy-policy/privacy-policy.js | 7 +++++++ 3 files changed, 21 insertions(+) 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) => {