From 37f2b00debf03c868af011c05b2fd509936dc951 Mon Sep 17 00:00:00 2001 From: keboss-m <85340750+keboss-m@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:53:46 +0300 Subject: [PATCH] Fix docx download: use native links instead of JS iframe method --- backend/static/app.js | 28 +++++++++++++--------------- backend/static/styles.css | 7 +++++-- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/backend/static/app.js b/backend/static/app.js index c30f4a0..fb1e977 100644 --- a/backend/static/app.js +++ b/backend/static/app.js @@ -233,6 +233,17 @@ class TranscriptionApp { const isMd = file.ext === '.md'; const isDocx = file.ext === '.docx'; const icon = isMd ? '📝' : isDocx ? '📄' : '📎'; + const downloadUrl = `/api/files/download?path=${encodeURIComponent(file.path)}`; + + if (isDocx) { + return ` + + + ${this.escapeHtml(file.name)} + ${this.formatBytes(file.size)} + + `; + } return `
⬇️ Скачивание DOCX...
+⬇️ Нажмите на файл слева для скачивания DOCX
✅ Файл скачан
-