From 07c5d0635c3bde24ebe710afac02a4102356a0d7 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 14 Feb 2018 17:20:30 +0100 Subject: [PATCH] cleanup --- index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 9191f8e..f377349 100644 --- a/index.js +++ b/index.js @@ -47,10 +47,10 @@ window.downloadSketch = () => { }); }; -window.addEventListener('keydown',(event) => { +window.addEventListener('keydown', (event) => { // downloadSketch const key = keycode(event); - if (key === 's') downloadSketch(); + if (key === 's') window.downloadSketch(); console.log(event.shiftKey, key); }); @@ -91,10 +91,7 @@ async function init() { render(( - - -
-
+
), document.getElementById('app')); }