1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Merge pull request #6033 from matrix-org/travis/rel-imageview

Add missing 'rel' to image view download button
This commit is contained in:
Travis Ralston
2021-05-14 08:12:11 -06:00
committed by GitHub

View File

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