don't try to use `this` without context

This commit is contained in:
Max Bradbury 2020-07-20 18:54:52 +01:00
parent 97a05984ab
commit f033d26b21
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ async function run() {
});
function handleTilePrefix() {
if (this.value) {
if (inputPrefix.value) {
spanTileNamePreview.innerText = `'${this.value} 1' etc.`
} else {
spanTileNamePreview.innerText = "'forest 1' etc."