removing addOneTrustPreferencesToLinks from OneTrust loaded block... should only append IF/WHEN user makes a onetrust choice (#1945)

This commit is contained in:
jasonbryant84
2025-10-07 10:02:19 +01:00
committed by GitHub
parent d6afcecd34
commit 2286d478eb
@@ -16,8 +16,6 @@ document.addEventListener('DOMContentLoaded', function () {
addUTMToLinks();
const handleOneTrustLoaded = () => { // One Trust Loaded
addOneTrustPreferencesToLinks();
window.OneTrust.OnConsentChanged(async () => { // One Trust Preference Updated
addOneTrustPreferencesToLinks();
registerAndCall();