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

Add missing 'rel' to image view download button

We're supposed to have this on every link off-site.
This commit is contained in:
Travis Ralston
2021-05-13 20:55:14 -06:00
parent e38d27f64e
commit b9f775d969

View File

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