Fix PDF download issue
This commit is contained in:
parent
b450e4d6d1
commit
360bd0da7b
1 changed files with 4 additions and 7 deletions
|
|
@ -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");
|
||||
}
|
||||
link.download = event.getContent().body || this.$t("fallbacks.download_name");
|
||||
console.log("LINK", link);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue