new Promise((resolve) => { if (window.__uspapi && ‘function’ === typeof __uspapi) { __uspapi(‘getUSPData’, 1, (uspData, success) => { if(success) { const consent = uspData.uspString.split(”)[2]; if (consent === ‘N’) { resolve(true); } else { resolve(false); } } else { resolve(false); } }); } else { resolve(false); } }); // Dispatch event for user consent window.OneTrust?.OnConsentChanged(({ detail }) => { const nxsConsentEvent = new CustomEvent(‘nxsConsent’, { detail }); dispatchEvent(nxsConsentEvent); }); // groups the user has consented to window.nxsConsentGroups = window.OnetrustActiveGroups; }) ]]> Continue reading
Housatonic River at Gaylordsville, Connecticut.

