diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 0d44938..2c0b543 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -626,6 +626,10 @@ class Theme { if (SmoothScroll) new SmoothScroll('[href^="#"]', { speed: 300, speedAsDuration: true, header: '#header-desktop' }); } + initCookieconsent() { + if (this.config.cookieconsent) cookieconsent.initialise(this.config.cookieconsent); + } + onScroll() { const $headers = []; if (document.body.getAttribute('header-desktop') === 'auto') $headers.push(document.getElementById('header-desktop')); @@ -706,6 +710,7 @@ class Theme { this.initEcharts(); this.initTypeit(); this.initMapbox(); + this.initCookieconsent(); this.onScroll(); this.onResize(); |