You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Remove useless image reference
This commit is contained in:
@@ -22,7 +22,6 @@ import Spinner from "../elements/Spinner";
|
|||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { _t } from "../../../languageHandler";
|
import { _t } from "../../../languageHandler";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import { DOWNLOAD_ICON_URL } from "./MFileBody";
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
mxEvent: MatrixEvent;
|
mxEvent: MatrixEvent;
|
||||||
@@ -69,7 +68,7 @@ export default class DownloadActionButton extends React.PureComponent<IProps, IS
|
|||||||
|
|
||||||
// we aren't showing the iframe, so we can send over the bare minimum styles and such.
|
// we aren't showing the iframe, so we can send over the bare minimum styles and such.
|
||||||
this.iframe.current.contentWindow.postMessage({
|
this.iframe.current.contentWindow.postMessage({
|
||||||
imgSrc: DOWNLOAD_ICON_URL,
|
imgSrc: "", // no image
|
||||||
imgStyle: null,
|
imgStyle: null,
|
||||||
style: "",
|
style: "",
|
||||||
blob: this.state.blob,
|
blob: this.state.blob,
|
||||||
|
|||||||
Reference in New Issue
Block a user