Set target to _blank

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-13 08:15:42 +02:00
parent b1091a22a3
commit f9fde3670d
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ export default class ImageView extends React.Component<IProps, IState> {
const a = document.createElement("a");
a.href = this.props.src;
a.download = this.props.name;
a.target = "_blank";
a.click();
};