Fix logfile loading behind reverse proxy (#1047)

pull/1052/head
Ozzieisaacs 5 years ago
parent e31df16309
commit 0c40e40dc3

@ -32,21 +32,8 @@ function init(logType) {
var d = document.getElementById("renderer");
d.innerHTML = "loading ...";
/*var r = new XMLHttpRequest();
r.open("GET", "/ajax/log/" + logType, true);
r.responseType = "text";
r.onload = function() {
var text;
text = (r.responseText).split("\n");
$("#renderer").text("");
console.log(text.length);
for (var i = 0; i < text.length; i++) {
$("#renderer").append( "<div>" + _sanitize(text[i]) + "</div>" );
}
};
r.send();*/
$.ajax({
url: "/ajax/log/" + logType,
url: window.location.pathname + "/../../ajax/log/" + logType,
datatype: "text",
cache: false
})

Loading…
Cancel
Save