Added simple loading info
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user