Update logview.html

Updated download button to always download full log file instead of selected range
This commit is contained in:
Toby Chui
2025-10-29 21:53:00 +08:00
parent 5dc89b812d
commit b3aa97fdff

View File

@@ -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;