diff options
Diffstat (limited to 'src/IntroBox.vue')
| -rw-r--r-- | src/IntroBox.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/IntroBox.vue b/src/IntroBox.vue index e0a1abb..a00fc64 100644 --- a/src/IntroBox.vue +++ b/src/IntroBox.vue @@ -25,31 +25,31 @@ import RouterParamMixin from './RouterParamMixin'; export default Vue.component('intro-box', { mixins: [ RouterParamMixin ], - data: function() { + data() { return { hideIntro: !!localStorage.getItem('hideIntro'), gaOptedOut: !!localStorage.getItem('gaOptOut'), }; }, methods: { - optOutAnalytics: function() { + optOutAnalytics() { this.$ga.disable(); this.gaOptedOut = true; }, }, - created: function() { + created() { if (this.gaOptedOut) { this.$ga.disable(); } }, watch: { - hideIntro: function(value) { + hideIntro(value) { localStorage.setItem('hideIntro', value); }, - gaOptedOut: function(value) { + gaOptedOut(value) { localStorage.setItem('gaOptOut', value); }, - selectedMode: function(value) { + selectedMode(value) { this.hideIntro = !!localStorage.getItem('hideIntro'); }, }, |
