Skip to content

Commit

Permalink
reverse banner logic to show banner when cookie is not detected
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Boyd <[email protected]>
  • Loading branch information
Andrew Boyd committed Dec 17, 2021
1 parent d016c5a commit 1096ac7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/.vuepress/components/FormKitTeaser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
export default {
data () {
return {
dismissed: false,
dismissed: true,
height: 0
}
},
Expand Down Expand Up @@ -70,14 +70,6 @@ export default {
}
}
},
created () {
if (typeof document !== 'undefined') {
this.dismissed = this.$cookies.get('vf_fk_notice_dismissed')
if (this.dismissed) {
this.hideBanner()
}
}
},
mounted () {
this.dismissed = this.$cookies.get('vf_fk_notice_dismissed')
if (this.dismissed) {
Expand Down

1 comment on commit 1096ac7

@vercel
Copy link

@vercel vercel bot commented on 1096ac7 Dec 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.