mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Check for existence of content.size. Fixes #201.
This commit is contained in:
		
							parent
							
								
									61f951a33e
								
							
						
					
					
						commit
						023034ce4f
					
				@ -83,7 +83,7 @@ module.exports = React.createClass({
 | 
				
			|||||||
                <div className="mx_MImageTile_download">
 | 
					                <div className="mx_MImageTile_download">
 | 
				
			||||||
                    <a href={cli.mxcUrlToHttp(content.url)} target="_blank">
 | 
					                    <a href={cli.mxcUrlToHttp(content.url)} target="_blank">
 | 
				
			||||||
                        <img src="img/download.png" width="10" height="12"/>
 | 
					                        <img src="img/download.png" width="10" height="12"/>
 | 
				
			||||||
                        Download {content.body} ({ filesize(content.info.size) })
 | 
					                        Download {content.body} ({ content.info && content.info.size ? filesize(content.info.size) : "Unknwon size" })
 | 
				
			||||||
                    </a>
 | 
					                    </a>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </span>
 | 
					            </span>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user