Add support for PDF file captions
This commit is contained in:
parent
5e1223fc01
commit
6f05d14877
6 changed files with 43 additions and 11 deletions
|
|
@ -914,6 +914,7 @@ class Util {
|
|||
}
|
||||
|
||||
download(matrixClient, event) {
|
||||
console.log("DOWNLOAD");
|
||||
this
|
||||
.getAttachment(matrixClient, event)
|
||||
.then((url) => {
|
||||
|
|
@ -924,6 +925,7 @@ class Util {
|
|||
// 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();
|
||||
setTimeout(function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue