From d876180f82e69bea3e2f411e06fdbdab253cbcd5 Mon Sep 17 00:00:00 2001 From: Fredrik Jensen Date: Tue, 5 Sep 2017 21:57:11 +0200 Subject: [PATCH] removed html --- index.html | 5 ----- src/index.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 95e7aac..0000000 --- a/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/index.js b/src/index.js index bd59f7b..9519d64 100644 --- a/src/index.js +++ b/src/index.js @@ -116,7 +116,7 @@ const moveSnake = (direction) => { * Set key events */ -setSnakeDirection = (direction) => snake.direction = direction; +const setSnakeDirection = (direction) => snake.direction = direction; document.onkeydown = function(e) { switch (e.keyCode) {