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')); }