1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2024-11-28 08:58:41 +02:00

Fix logfile loading behind reverse proxy (#1047)

This commit is contained in:
Ozzieisaacs 2019-09-27 08:14:42 +02:00
parent e31df16309
commit 0c40e40dc3

View File

@ -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
})