mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 09:01:30 +03:00
Fix lint errors
This commit is contained in:
parent
850b5452a0
commit
b3c03c9b68
1 changed files with 6 additions and 6 deletions
|
@ -277,13 +277,13 @@ export default class MFileBody extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
} else if (contentUrl) {
|
} else if (contentUrl) {
|
||||||
const downloadProps = {
|
const downloadProps = {
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
rel: "noreferrer noopener",
|
rel: "noreferrer noopener",
|
||||||
|
|
||||||
// We set the href regardless of whether or not we intercept the download
|
// We set the href regardless of whether or not we intercept the download
|
||||||
// because we don't really want to convert the file to a blob eagerly, and
|
// because we don't really want to convert the file to a blob eagerly, and
|
||||||
// still want "open in new tab" and "save link as" to work.
|
// still want "open in new tab" and "save link as" to work.
|
||||||
href: contentUrl,
|
href: contentUrl,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Blobs can only have up to 500mb, so if the file reports as being too large then
|
// Blobs can only have up to 500mb, so if the file reports as being too large then
|
||||||
|
|
Loading…
Reference in a new issue