Merge branch '608-fix-pdf-download-issue' into 'dev'

Fix PDF download issue

Closes #608

See merge request keanuapp/keanuapp-weblite!376
This commit is contained in:
N Pex 2025-12-08 15:22:00 +00:00
commit 244d23f31e

View file

@ -1139,10 +1139,7 @@ class Util {
const link = document.createElement("a");
link.href = url;
link.target = "_blank";
if (!this.isFileTypePDF(event)) {
// PDFs are shown inline, not downloaded
link.download = event.getContent().body || this.$t("fallbacks.download_name");
}
console.log("LINK", link);
document.body.appendChild(link);
link.click();