From 879dfad1cf260f7801bb53af5695decf0108dcaa Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Mon, 5 Feb 2024 11:13:22 -0500 Subject: [PATCH] image dependancy --- static/js/updateMonsterSprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/updateMonsterSprite.js b/static/js/updateMonsterSprite.js index c3f2e51..2cc7e95 100644 --- a/static/js/updateMonsterSprite.js +++ b/static/js/updateMonsterSprite.js @@ -1,5 +1,5 @@ function updateMonsterSprite() { - var selectedMonster = document.getElementById("monsterDropdown").value; + var selectedMonster = document.getElementById("monsterDropdown").value.toLowerCase(); var spriteUrl = `/img/monster/${selectedMonster}.png`; var iframe = document.getElementById("monsterSpriteIframe");