mirror of
https://github.com/microsoft/graphrag.git
synced 2025-06-26 23:19:58 +00:00
18 lines
581 B
JavaScript
18 lines
581 B
JavaScript
function onConsentChanged(categoryPreferences) {
|
|
console.log("onConsentChanged", categoryPreferences);
|
|
}
|
|
|
|
|
|
cb = document.createElement("div");
|
|
cb.id = "cookie-banner";
|
|
document.body.insertBefore(cb, document.body.children[0]);
|
|
|
|
window.WcpConsent && WcpConsent.init("en-US", "cookie-banner", function (err, consent) {
|
|
if (!err) {
|
|
console.log("consent: ", consent);
|
|
window.manageConsent = () => consent.manageConsent();
|
|
siteConsent = consent;
|
|
} else {
|
|
console.log("Error initializing WcpConsent: "+ err);
|
|
}
|
|
}, onConsentChanged, WcpConsent.themes.light); |