mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Fix logfile loading behind reverse proxy (#1047)
This commit is contained in:
		| @@ -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 | ||||||
|     }) |     }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzieisaacs
					Ozzieisaacs