v0.0.11: fix download — a.appendTo(body) перед click
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-13 11:13:28 +04:00
parent 7bdcb5b7b4
commit bbc45e155f
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
sys.path.insert(0, _sys_path_root) sys.path.insert(0, _sys_path_root)
# Версия приложения (меняется при изменениях) # Версия приложения (меняется при изменениях)
VERSION = "0.0.10" VERSION = "0.0.11"
def create_app(): def create_app():
+4
View File
@@ -260,7 +260,9 @@ function downloadZip() {
const a = document.createElement('a'); const a = document.createElement('a');
a.href = '/api/download/' + currentSid; a.href = '/api/download/' + currentSid;
a.download = 'drhider_' + ts() + '.zip'; a.download = 'drhider_' + ts() + '.zip';
document.body.appendChild(a);
a.click(); a.click();
document.body.removeChild(a);
} }
function downloadCsv() { function downloadCsv() {
@@ -268,7 +270,9 @@ function downloadCsv() {
const a = document.createElement('a'); const a = document.createElement('a');
a.href = '/api/csv/' + currentSid; a.href = '/api/csv/' + currentSid;
a.download = 'mapping_' + ts() + '.csv'; a.download = 'mapping_' + ts() + '.csv';
document.body.appendChild(a);
a.click(); a.click();
document.body.removeChild(a);
} }
</script> </script>
</body> </body>