Use RTS URL passed through

This commit is contained in:
Luke Barnard 2017-02-02 11:58:20 +00:00
parent 4a34bee2dc
commit f2e62ff439

View File

@ -24,6 +24,7 @@ module.exports = React.createClass({
displayName: 'HomePage',
propTypes: {
teamServerUrl: React.PropTypes.string.isRequired,
teamToken: React.PropTypes.string.isRequired,
collapsedRhs: React.PropTypes.bool,
},
@ -34,7 +35,7 @@ module.exports = React.createClass({
return (
<div className="mx_HomePage">
<iframe src={`http://localhost:7000/static/${this.props.teamToken}/welcome.html`} style={{width: '100%', border: 'none'}}/>
<iframe src={`${this.props.teamServerUrl}/static/${this.props.teamToken}/welcome.html`} style={{width: '100%', border: 'none'}}/>
</div>
);
}