Skip to content

Commit

Permalink
fix(cookie banner): Set banner to hide by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed May 5, 2022
1 parent 0fbf51a commit 9ac186f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/layout/CookieConsent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ import {bootstrap} from 'vue-gtag';
export default Vue.extend({
data: () => ({
snackbar: true,
snackbar: false,
cookieKey: 'do-not-show-analytics-consent',
}),
created() {
if (this.$cookies.get(this.cookieKey)) {
this.snackbar = false;
if (!this.$cookies.get(this.cookieKey)) {
this.snackbar = true;
}
},
methods: {
Expand Down

0 comments on commit 9ac186f

Please sign in to comment.