whoopsies

This commit is contained in:
Axolotle 2020-12-16 15:11:53 +01:00
parent 9ebd0a4558
commit 0a26c2cea5

View file

@ -130,7 +130,6 @@ export default {
const konamiCode = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a']
let step = 0
document.addEventListener('keydown', ({ key }) => {
console.log(key, step)
if (key === konamiCode[step++]) {
if (step === konamiCode.length) {
this.$store.commit('SET_SPINNER', 'nyancat')