fix stupid javascript shit

This commit is contained in:
Greg Gauthier 2024-07-17 01:15:39 +01:00
parent 79eece9ca9
commit 670e19f496

View File

@ -26,7 +26,7 @@ document.getElementById('terrainForm').addEventListener('submit', function (even
resultSection.innerHTML = ''; // Clear previous content
if (Object.keys(json).length === 1) { // Short version of response
let name = json.name !== null ? json.name : 'No Encounter';
setResultImage(name);
setResultImage(document, name);
} else { // Long version of the response
if (json.name === 'android') {
androidResultTable(json, json.name);