oops, forgot this

pull/21833/head
Matthew Hodgson 2016-01-05 03:54:44 +00:00
parent 0e98764d82
commit 9cf49eb62d
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ module.exports = React.createClass({
return MatrixClientPeg.get().mxcUrlToHttp(content.url, 480, 360);
},
onSvgLoad: function(event) {
dis.dispatch({ action: "svg_onload", svg: event.target });
},
render: function() {
var content = this.props.mxEvent.getContent();
var cli = MatrixClientPeg.get();