diff --git a/assets/js/theme.js b/assets/js/theme.js index fd6fd1d9d..1d41571f9 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -914,7 +914,7 @@ class FixIt { } initCookieconsent() { - this.config.cookieconsent && cookieconsent.initialise(this.config.cookieconsent); + this.config.cookieconsent && window.cookieconsent?.initialise(this.config.cookieconsent); } getSiteTime = () => {