Skip to content

Commit

Permalink
Remove unused saveCookieInformation function and clean up message eve…
Browse files Browse the repository at this point in the history
…nt listeners in cb.js
  • Loading branch information
felixaschultz committed Oct 2, 2024
1 parent 611cf32 commit 699c4de
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cb.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,24 +781,6 @@ window.addEventListener("load", function () {
}
window.addEventListener("message", sendCookieInformation);
window.removeEventListener("message", sendCookieInformation);

function saveCookieInformation(event) {
if (event.origin !== "https://consents.cdn.intastellarsolutions.com") return;


console.log(event);
/* if (event.data.cookieSharing !== undefined || event.data.cookieSharing !== null) {
const intastellarUserGivingConsents = event.data.cookieSharing;
console.log(intastellarUserGivingConsents);
document.cookie =
int_hideCookieBannerName + "=__inta1." + encodeIntaConsentsObject(intastellarUserGivingConsents, randomIntFromInterval(20, 34)) + "; expires=" + cookieLifeTime +
"; path=/; " +
intCookieDomain +
"";
} */
}

window.addEventListener("message", saveCookieInformation);
}
}

Expand Down

0 comments on commit 699c4de

Please sign in to comment.