From b3aa97fdff01c0aca9f8d67ebc863621302af171 Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Wed, 29 Oct 2025 21:53:00 +0800 Subject: [PATCH] Update logview.html Updated download button to always download full log file instead of selected range --- src/web/snippet/logview.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/web/snippet/logview.html b/src/web/snippet/logview.html index 63d3350..9293037 100644 --- a/src/web/snippet/logview.html +++ b/src/web/snippet/logview.html @@ -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;