Fix logfile loading behind reverse proxy (#1047)
This commit is contained in:
parent
e31df16309
commit
0c40e40dc3
|
@ -32,21 +32,8 @@ function init(logType) {
|
||||||
var d = document.getElementById("renderer");
|
var d = document.getElementById("renderer");
|
||||||
d.innerHTML = "loading ...";
|
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({
|
$.ajax({
|
||||||
url: "/ajax/log/" + logType,
|
url: window.location.pathname + "/../../ajax/log/" + logType,
|
||||||
datatype: "text",
|
datatype: "text",
|
||||||
cache: false
|
cache: false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user