Merge pull request #6033 from matrix-org/travis/rel-imageview
Add missing 'rel' to image view download button
This commit is contained in:
@@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user