`;
document.write(wildcardScript);
}
console.error(
'[CookieFirst] WARNING: Loading CookieFirst banner via banner.js has been deprecated and will be removed soon. Please use consent.js instead. You can find more information about it here: https://support.cookiefirst.com/hc/en-us/articles/29102644905245-Depreciation-of-Banner-js'
);
// Check if there is api key as attribute
let apiKey = document.currentScript.getAttribute('data-cookiefirst-key');
if (!apiKey) {
// If there is no api key, get it from url
const url = new URL(document.currentScript.src).searchParams;
apiKey = url.get('cookiefirst-key');
}
// Check 2nd time, to see if api key is still not found
if (apiKey) {
const domain = window.location.hostname.replace(/^www\./, '');
const consentScript = ``;
document.write(consentScript);
} else {
console.error('CF: No api key found');
}