Skip to content

Commit

Permalink
skip logging details
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Jul 25, 2024
1 parent a125956 commit 1f88d1f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions dist/privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ return JSON.stringify({
iab_tcf_v1: (() => {
let consentData = {
present: typeof window.__cmp == 'function',
data: null,
compliant_setup: null,
};
// description of `__cmp`: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/CMP%20JS%20API%20v1.1%20Final.md#what-api-will-need-to-be-provided-by-the-cmp-
try {
Expand Down Expand Up @@ -156,8 +154,6 @@ return JSON.stringify({
iab_tcf_v2: (() => {
let tcData = {
present: typeof window.__tcfapi == 'function',
data: null,
compliant_setup: null,
};
// description of `__tcfapi`: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-does-the-cmp-provide-the-api
try {
Expand Down Expand Up @@ -214,7 +210,6 @@ return JSON.stringify({
iab_usp: (() => {
let uspData = {
present: typeof window.__uspapi == 'function',
privacy_string: null,
};
try {
if (uspData.present) {
Expand Down Expand Up @@ -506,10 +501,14 @@ return JSON.stringify({
return allowedCCPALinkPhrases.some(phrase => text.includes(phrase)) && !CCPAExclusionPhrases.some(phrase => text.includes(phrase))
})

return {
let CCPAdata = {
hasCCPALink: CCPALinks.length > 0,
CCPALinkPhrases: CCPALinks.map(link => link.textContent.trim().toLowerCase())
}
if (CCPAdata.hasCCPALink) {
CCPAdata.CCPALinkPhrases = CCPALinks.map(link => link.textContent.trim().toLowerCase())
}

return CCPAdata
})()

});

0 comments on commit 1f88d1f

Please sign in to comment.