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
commit 6df079a5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
};