Commit f5aa2779 authored by Johannes Winter's avatar Johannes Winter

trim

parent dd773bdd
......@@ -38,11 +38,6 @@ export default {
'cookieDuration': 14, // Number of days before the cookie expires, and the banner reappears
}
},
mounted () {
if (this.createCookieWhenBannerIsShown) {
this.createAcceptCookie();
}
},
methods: {
'checkCookie': function(name) {
var nameEQ = name + "=";
......@@ -54,15 +49,12 @@ export default {
}
return null;
},
'accept': function() {
this.$matomo.rememberConsentGiven(this.cookieDuration*24)
},
'decline': function() {
this.$matomo.forgetConsentGiven()
},
'consent': function () {
return this.checkCookie('mtm_consent') != null
},
......@@ -83,9 +75,7 @@ export default {
}
}
}
}
}
</script>
<style>
......
Markdown is supported
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