From 2cfb6608e53123a47457821526cb7b1f3141bafa Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 11 Oct 2017 22:54:01 -0400 Subject: [PATCH] Allow changing the type of deck after generation --- js/editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/editor.js b/js/editor.js index 1bed972..7bb0e46 100644 --- a/js/editor.js +++ b/js/editor.js @@ -47,6 +47,10 @@ window.addEventListener("load", () => { document.querySelector('#deckForm').addEventListener('input', event => { let prop = event.target.id.substring(4).toLowerCase(); deckJSON[prop] = event.target.value; + if (prop === 'type') { + makeSVGs(deckJSON); + } + }); }); // handle changes to card editor