diff --git a/scripts/delayed.js b/scripts/delayed.js index 6846828cd..6733d7293 100644 --- a/scripts/delayed.js +++ b/scripts/delayed.js @@ -113,3 +113,28 @@ if (!isSidekickLibrary) { LoadDriftWidget(); } } + +// SalesForce MCP - start + +function loadEvergageScript() { + const script = document.createElement('script'); + if (window.location.host.includes('moleculardevices')) { + script.src = 'https://cdn.evgnet.com/beacon/v55685555553mx3rf3h3n3n3i091550196/danaher_ls_prod/scripts/evergage.min.js'; + } else { + script.src = 'https://cdn.evgnet.com/beacon/v55685555553mx3rf3h3n3n3i091550196/danaher_ls_staging/scripts/evergage.min.js'; + } + script.onload = function onEvergageLoad() { + }; + script.onerror = function onEvergageError() { + }; + document.head.appendChild(script); +} + +setTimeout(() => { + /* eslint-disable */ + if (typeof OnetrustActiveGroups !== 'undefined' && OnetrustActiveGroups.includes('C0004')) { + loadEvergageScript(); + } +}, 3000); + +// SalesForce MCP - end