mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-11-15 21:34:18 +01:00
Update logview.html
Updated download button to always download full log file instead of selected range
This commit is contained in:
@@ -377,11 +377,9 @@ Pick a log file from the menu to start debugging
|
||||
alert("Please select a log file first.");
|
||||
return;
|
||||
}
|
||||
if (!currentOpenedLogURL) {
|
||||
alert("No log file is currently opened.");
|
||||
return;
|
||||
}
|
||||
$.get(currentOpenedLogURL, function(data) {
|
||||
// Always download the full log file, regardless of current line limit
|
||||
let downloadURL = "/api/log/read?file=" + currentLogFile + "&filter=" + currentFilter + "&lines=all";
|
||||
$.get(downloadURL, function(data) {
|
||||
if (data.error !== undefined) {
|
||||
alert(data.error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user