From 627a4d4ea44da90b3fa8ec611d90815e00272024 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2020 16:53:45 +0000 Subject: [PATCH] Update comments and such Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/messages/MFileBody.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/views/messages/MFileBody.js b/src/components/views/messages/MFileBody.js index aee7d903aa..f67cd1b2b0 100644 --- a/src/components/views/messages/MFileBody.js +++ b/src/components/views/messages/MFileBody.js @@ -268,12 +268,12 @@ export default createReactClass({ // will have the correct name when the user tries to download it. // We can't provide a Content-Disposition header like we would for HTTP. download: fileName, - rel: "noopener", - target: "_blank", textContent: _t("Download %(text)s", { text: text }), }, "*"); }; + const url = "usercontent/"; // XXX: this path should probably be passed from the skin + // If the attachment is encrypted then put the link inside an iframe. return ( @@ -286,7 +286,11 @@ export default createReactClass({ */ } -