From f9fde3670dd49ab0845ae903971ecff9f10c9657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 13 Apr 2021 08:15:42 +0200 Subject: [PATCH] Set target to _blank MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/elements/ImageView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/elements/ImageView.tsx b/src/components/views/elements/ImageView.tsx index 35f494025c..dad62521da 100644 --- a/src/components/views/elements/ImageView.tsx +++ b/src/components/views/elements/ImageView.tsx @@ -176,6 +176,7 @@ export default class ImageView extends React.Component { const a = document.createElement("a"); a.href = this.props.src; a.download = this.props.name; + a.target = "_blank"; a.click(); };