mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Use RTS URL passed through
This commit is contained in:
parent
4a34bee2dc
commit
f2e62ff439
@ -24,6 +24,7 @@ module.exports = React.createClass({
|
|||||||
displayName: 'HomePage',
|
displayName: 'HomePage',
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
teamServerUrl: React.PropTypes.string.isRequired,
|
||||||
teamToken: React.PropTypes.string.isRequired,
|
teamToken: React.PropTypes.string.isRequired,
|
||||||
collapsedRhs: React.PropTypes.bool,
|
collapsedRhs: React.PropTypes.bool,
|
||||||
},
|
},
|
||||||
@ -34,7 +35,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_HomePage">
|
<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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user