mirror of https://github.com/vector-im/riot-web
Set target to _blank
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
b1091a22a3
commit
f9fde3670d
|
@ -176,6 +176,7 @@ export default class ImageView extends React.Component<IProps, IState> {
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = this.props.src;
|
a.href = this.props.src;
|
||||||
a.download = this.props.name;
|
a.download = this.props.name;
|
||||||
|
a.target = "_blank";
|
||||||
a.click();
|
a.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue