Skip to content

Commit 523b315

Browse files
authored
Merge pull request element-hq#3640 from t3chguy/t3chguy/lightbox_download_button
fix ImageView Download functionality
2 parents 36f08cf + cc7a585 commit 523b315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/views/elements/ImageView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ module.exports = React.createClass({
176176
{ this.getName() }
177177
</div>
178178
{ eventMeta }
179-
<a className="mx_ImageView_link" href={ this.props.src } target="_blank" rel="noopener">
179+
<a className="mx_ImageView_link" href={ this.props.src } download={ this.props.name } target="_blank" rel="noopener">
180180
<div className="mx_ImageView_download">
181181
Download this file<br/>
182182
<span className="mx_ImageView_size">{ size_res }</span>

0 commit comments

Comments
 (0)