From bbc45e155fce88566487f8454acdee7c2d9a66d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 13 Jul 2026 11:13:28 +0400 Subject: [PATCH] =?UTF-8?q?v0.0.11:=20fix=20download=20=E2=80=94=20a.appen?= =?UTF-8?q?dTo(body)=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=20click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 +- site/templates/index.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/site/app.py b/site/app.py index 200de17..cd4c02d 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "0.0.10" +VERSION = "0.0.11" def create_app(): diff --git a/site/templates/index.html b/site/templates/index.html index fffc44d..56bf827 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -260,7 +260,9 @@ function downloadZip() { const a = document.createElement('a'); a.href = '/api/download/' + currentSid; a.download = 'drhider_' + ts() + '.zip'; + document.body.appendChild(a); a.click(); + document.body.removeChild(a); } function downloadCsv() { @@ -268,7 +270,9 @@ function downloadCsv() { const a = document.createElement('a'); a.href = '/api/csv/' + currentSid; a.download = 'mapping_' + ts() + '.csv'; + document.body.appendChild(a); a.click(); + document.body.removeChild(a); }