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); }