feat: show debug panel with #debug

This commit is contained in:
Settel 2022-03-16 13:41:33 +01:00
parent bc16941521
commit 2fd569f825

View File

@ -36,7 +36,8 @@ export default {
},
computed: {
showDebugPanel() {
return this.$route.query && this.$route.query.debug
const { hash } = this.$route
return hash.indexOf('debug') > -1
},
gameState() {
return this.$store.state.game.state