From 6c32827ae5e1a987cc39a25f744f993293e756c0 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 20 Jul 2020 18:55:13 +0100 Subject: [PATCH] use consts --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index cd3792a..b3d3f66 100644 --- a/script.js +++ b/script.js @@ -130,9 +130,9 @@ async function run() { handleTilePrefix(); function addTiles() { - let image = el("preview").getAttribute("src"); - let gameData = el("game-data").value; - let prefix = el("prefix").value; + let image = imagePreview.getAttribute("src"); + let gameData = textareaGameDataInput.value; + let prefix = inputPrefix.value; textareaGameDataOutput.value = add_tiles(gameData, image, prefix); }