fix stupid javascript shit
This commit is contained in:
parent
79eece9ca9
commit
670e19f496
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user