Added simple loading info

This commit is contained in:
2023-05-18 15:54:19 +02:00
parent 0951197198
commit c9ff56431b

View File

@@ -121,6 +121,7 @@ async function formatXML(xml) {
function showRequestBody(element){
requestBody = "";
document.getElementById('code-highlight-content').innerText = "Loading...";
var historyRequestBody = historyJson[element.id].requestBody;
switch(historyJson[element.id].headers["content-type"]){
case "application/json":{
@@ -132,7 +133,6 @@ function showRequestBody(element){
break;
}
case "application/xml":{
document.getElementById('code-highlight-content').innerText = "";
formatXML(historyRequestBody).then(function(result) {
if (result.status == "OK") {
document.getElementById('code-highlight-content').innerText = result.result;