Lint fixes.
This commit is contained in:
parent
141f2f7b6d
commit
aa3a5d3808
2 changed files with 44 additions and 44 deletions
|
|
@ -5,7 +5,7 @@
|
|||
if (typeof window.Cookies !== 'undefined') {
|
||||
const cookieconsent = document.querySelector('.cookieconsent');
|
||||
|
||||
if (window.Cookies.get('cookieconsent') === undefined && cookieconsent) {
|
||||
if (typeof window.Cookies.get('cookieconsent') === 'undefined' && cookieconsent) {
|
||||
cookieconsent.classList.add('js-cookieconsent-open');
|
||||
}
|
||||
|
||||
|
|
@ -24,14 +24,14 @@
|
|||
|
||||
cookie_buttons.forEach(function (button) {
|
||||
button.addEventListener('click', function () {
|
||||
if (button.getAttribute('data-consent') == 'true') {
|
||||
if (button.getAttribute('data-consent') === 'true') {
|
||||
window.Cookies.set('cookieconsent', 'accept', cookie_options);
|
||||
}
|
||||
else {
|
||||
window.Cookies.set('cookieconsent', 'decline', cookie_options);
|
||||
}
|
||||
cookieconsent.classList.remove('js-cookieconsent-open');
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue