use consts

This commit is contained in:
Max Bradbury 2020-07-20 18:55:13 +01:00
parent f033d26b21
commit 6c32827ae5
1 changed files with 3 additions and 3 deletions

View File

@ -130,9 +130,9 @@ async function run() {
handleTilePrefix(); handleTilePrefix();
function addTiles() { function addTiles() {
let image = el("preview").getAttribute("src"); let image = imagePreview.getAttribute("src");
let gameData = el("game-data").value; let gameData = textareaGameDataInput.value;
let prefix = el("prefix").value; let prefix = inputPrefix.value;
textareaGameDataOutput.value = add_tiles(gameData, image, prefix); textareaGameDataOutput.value = add_tiles(gameData, image, prefix);
} }