From caa4e00948475f40882a4c46a05c08b44e4d22e6 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 20 Jul 2020 17:35:02 +0100 Subject: [PATCH] better preview --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 8511d12..021c5aa 100644 --- a/script.js +++ b/script.js @@ -105,7 +105,7 @@ async function run() { textareaGameDataInput.addEventListener("change", checkGameData); textareaGameDataInput.addEventListener("keyup", checkGameData); checkGameData(); - + imagePreview.style.display = "none"; el('image').addEventListener('change', function () { @@ -123,6 +123,7 @@ async function run() { } } + inputPrefix.addEventListener("keyup", handleTilePrefix); inputPrefix.addEventListener("change", handleTilePrefix); handleTilePrefix();