mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-11-15 13:24:08 +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.");
|
alert("Please select a log file first.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!currentOpenedLogURL) {
|
// Always download the full log file, regardless of current line limit
|
||||||
alert("No log file is currently opened.");
|
let downloadURL = "/api/log/read?file=" + currentLogFile + "&filter=" + currentFilter + "&lines=all";
|
||||||
return;
|
$.get(downloadURL, function(data) {
|
||||||
}
|
|
||||||
$.get(currentOpenedLogURL, function(data) {
|
|
||||||
if (data.error !== undefined) {
|
if (data.error !== undefined) {
|
||||||
alert(data.error);
|
alert(data.error);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user