Allow changing the type of deck after generation
This commit is contained in:
parent
f70af7cc02
commit
dd76936478
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user