From 469f9766c0bbabf069a9b869026f386037351578 Mon Sep 17 00:00:00 2001 From: Narcis Radu Date: Wed, 24 May 2023 15:51:59 +0300 Subject: [PATCH] Provide default id for privacy --- libs/scripts/delayed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/scripts/delayed.js b/libs/scripts/delayed.js index f1270f25e7..44014e252e 100644 --- a/libs/scripts/delayed.js +++ b/libs/scripts/delayed.js @@ -21,13 +21,15 @@ export const loadJarvisChat = async (getConfig, getMetadata, loadScript, loadSty }; export const loadPrivacy = async (getConfig, loadScript) => { + const acom = '7a5eb705-95ed-4cc4-a11d-0cc5760e93db'; const ids = { 'hlx.page': '3a6a37fe-9e07-4aa9-8640-8f358a623271-test', 'hlx.live': '926b16ce-cc88-4c6a-af45-21749f3167f3-test', }; const otDomainId = ids?.[Object.keys(ids) - .find((domainId) => window.location.host.includes(domainId))] ?? getConfig()?.privacyId; + .find((domainId) => window.location.host.includes(domainId))] + ?? (getConfig()?.privacyId || acom); window.fedsConfig = { privacy: { otDomainId }, documentLanguage: true,