From 293c818eb276c590eb926d00e68f263792f75be2 Mon Sep 17 00:00:00 2001 From: joeyak Date: Thu, 11 Apr 2019 20:00:02 -0400 Subject: [PATCH] Remove debug log I left in and fix konami code --- static/js/both.js | 3 +-- static/js/chat.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/static/js/both.js b/static/js/both.js index db20271..66dd52b 100644 --- a/static/js/both.js +++ b/static/js/both.js @@ -10,7 +10,6 @@ $(document).on("keydown", function (e) { if (lastKeys.length > 10) { lastKeys.shift(); } - a = e if (devKeys) { let modifiedLastKeys = [] @@ -38,7 +37,7 @@ $(document).on("keydown", function (e) { function checkKonami(e) { if (lastKeys.length === konamiCode.length) { for (let i = 0; i < lastKeys.length; i++) { - if (lastKeys[i] != konamiCode[i]) { + if (lastKeys[i].key != konamiCode[i]) { return; } } diff --git a/static/js/chat.js b/static/js/chat.js index 0896660..3d3386d 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -253,7 +253,6 @@ function setupEvents() { } }, keydown: (e) => { - console.log(e.keyCode + e.key + e.ctrlKey) if (processMessageKey(e)) { e.preventDefault(); }