From 2ed9ddd569c6ed368e9b42b22b28aa315a15cf8b Mon Sep 17 00:00:00 2001 From: Stephan Kellermayr Date: Thu, 10 Oct 2024 08:51:06 +0200 Subject: [PATCH] [BUGFIX] Fix JavaScript error when cookieconsent.min.js is blocked by secure browser (#1453) Added missing check whether the method initialise() exists Co-authored-by: Benjamin Kott --- .../Public/JavaScript/Dist/bootstrap.cookieconsent.min.js | 2 +- Resources/Public/JavaScript/Src/bootstrap.cookieconsent.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Resources/Public/JavaScript/Dist/bootstrap.cookieconsent.min.js b/Resources/Public/JavaScript/Dist/bootstrap.cookieconsent.min.js index f257e0960..ce6b70125 100644 --- a/Resources/Public/JavaScript/Dist/bootstrap.cookieconsent.min.js +++ b/Resources/Public/JavaScript/Dist/bootstrap.cookieconsent.min.js @@ -1 +1 @@ -window.addEventListener("DOMContentLoaded",function(){if(document.getElementById("cookieconsent")){const t={layout:"basic",layouts:{basic:'
{{messagelink}}{{compliance}}
',"basic-close":'
{{messagelink}}{{compliance}}{{close}}
',"basic-header":'
{{header}}{{message}}{{link}}{{compliance}}
'},cookie:{domain:window.location.hostname,expiryDays:365},compliance:{"opt-in":'
{{deny}}{{allow}}
'},elements:{header:'

{{header}}

',dismiss:'',allow:''},window:'',revokeBtn:'
Cookie settings
',content:{header:"We use cookies",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:""},law:{countryCode:null,regionalLaw:!0},type:"info",position:"bottom",revokable:!1,static:!1,location:!0,showLink:!1},i=["layout","cookie.expiryDays","content.header","content.message","content.dismiss","content.allow","content.deny","content.link","content.href","type","position","law.countryCode","law.regionalLaw","revokable","static","location"],c={updateCookieConsentOptions:function(e,o,n){for(stack=o.split(".");1{{messagelink}}{{compliance}}',"basic-close":'
{{messagelink}}{{compliance}}{{close}}
',"basic-header":'
{{header}}{{message}}{{link}}{{compliance}}
'},cookie:{domain:window.location.hostname,expiryDays:365},compliance:{"opt-in":'
{{deny}}{{allow}}
'},elements:{header:'

{{header}}

',dismiss:'',allow:''},window:'',revokeBtn:'
Cookie settings
',content:{header:"We use cookies",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:""},law:{countryCode:null,regionalLaw:!0},type:"info",position:"bottom",revokable:!1,static:!1,location:!0,showLink:!1},i=["layout","cookie.expiryDays","content.header","content.message","content.dismiss","content.allow","content.deny","content.link","content.href","type","position","law.countryCode","law.regionalLaw","revokable","static","location"],c={updateCookieConsentOptions:function(e,o,n){for(stack=o.split(".");1