From adab2c624fc0596d5fa9b36bd33bc8475351d7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 13 Jul 2026 11:44:43 +0400 Subject: [PATCH] =?UTF-8?q?v0.0.12:=20fix=20download=20=E2=80=94=20window.?= =?UTF-8?q?location=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20a.click()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 +- site/templates/index.html | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/site/app.py b/site/app.py index cd4c02d..e90faaa 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.11" +VERSION = "0.0.12" def create_app(): diff --git a/site/templates/index.html b/site/templates/index.html index 56bf827..a413656 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -257,22 +257,12 @@ async function uploadFiles() { function downloadZip() { if (!currentSid) return; - 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); + window.location = '/api/download/' + currentSid; } function downloadCsv() { if (!currentSid) return; - 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); + window.location = '/api/csv/' + currentSid; }