diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/app.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/app/app.vue b/src/client/app/app.vue index 9de01ef060..e639c9f9ac 100644 --- a/src/client/app/app.vue +++ b/src/client/app/app.vue @@ -10,7 +10,8 @@ export default Vue.extend({ computed: { keymap(): any { return { - 'h|slash': this.help + 'h|slash': this.help, + 'd': this.dark }; } }, @@ -18,6 +19,13 @@ export default Vue.extend({ methods: { help() { window.open(`${url}/docs/${lang}/keyboard-shortcut`, '_blank'); + }, + + dark() { + this.$store.commit('device/set', { + key: 'darkmode', + value: !this.$store.state.device.darkmode + }); } } }); |