summaryrefslogtreecommitdiff
path: root/src/IntroBox.vue
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2019-03-25 19:12:32 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2019-04-27 09:22:59 +0200
commitc7d12a8aaaad45b6d131fedd8a2169348c0ef3f5 (patch)
tree47bb320ffba03a69fbc886e627389076abcbbd90 /src/IntroBox.vue
parent0dd62c0291f401e7e66b569af4d021410378a43c (diff)
downloadbrokentalents-c7d12a8aaaad45b6d131fedd8a2169348c0ef3f5.tar.gz
brokentalents-c7d12a8aaaad45b6d131fedd8a2169348c0ef3f5.zip
Use es6 method syntax
Diffstat (limited to 'src/IntroBox.vue')
-rw-r--r--src/IntroBox.vue12
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');
},
},