mirror of https://github.com/vector-im/riot-web
Add missing 'rel' to image view download button
We're supposed to have this on every link off-site.pull/21833/head
parent
e38d27f64e
commit
b9f775d969
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue