// OptanonWrapper is required by OneTrust function OptanonWrapper() {} function onOneTrustSDKLoad() { let OneTrustInstance = null; if (window["OneTrust"]) { OneTrustInstance = window["OneTrust"]; OneTrustInstance.OnConsentChanged(function () { setTimeout(function () { window.location.reload(); }, 1000); }); } else { setTimeout(onOneTrustSDKLoad, 1000); } };