Skip to content
Snippets Groups Projects
Commit 51acf6a5 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

Add fallback for cookie banner calls #137

parent f45add7e
No related branches found
No related tags found
No related merge requests found
......@@ -104,5 +104,12 @@ function resetDataProtectionBanner() {
ebiFrameworkRunDataProtectionBanner();
}
// Fallback for any code that was directly calling the old cookie banner:
// https://github.com/ebiwd/EBI-Framework/blob/6707eff40e15036f735637413deed0dcb7392818/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js
function ebiFrameworkCookieBanner() {
console.warn('You are calling an old function name, update it to ebiFrameworkRunDataProtectionBanner();')
ebiFrameworkRunDataProtectionBanner();
}
// execute
ebiFrameworkRunDataProtectionBanner();
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment