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

Add missing 'rel' to image view download button
pull/21833/head
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
1 changed files with 1 additions and 0 deletions

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