Add line breaks between output dumps in test page

This commit is contained in:
Nihanth Subramanya 2018-01-15 18:08:36 +05:30
Родитель 03c2e69f12
Коммит 74bbe6925d
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -11,8 +11,13 @@
if (aAlertText) {
alert(aAlertText);
}
document.getElementById("responseDump").appendChild(
document.createTextNode(xhr.response));
let responseDumpElt = document.getElementById("responseDump");
responseDumpElt.appendChild(
document.createTextNode(JSON.stringify(xhr.response));
responseDumpElt.appendChild(
document.createElement("hr"));
responseDumpElt.appendChild(
document.createElement("br"));
}
};
xhr.open("POST", aURL, true);