Only init RTS if configured correctly
This commit is contained in:
parent
3f9f59bb73
commit
3d30db81e0
1 changed files with 5 additions and 1 deletions
|
@ -210,7 +210,11 @@ module.exports = React.createClass({
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
this.handleResize();
|
this.handleResize();
|
||||||
|
|
||||||
|
if (this.props.config.teamServerConfig &&
|
||||||
|
this.props.config.teamServerConfig.teamServerURL
|
||||||
|
) {
|
||||||
Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
|
Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
|
||||||
|
}
|
||||||
|
|
||||||
// the extra q() ensures that synchronous exceptions hit the same codepath as
|
// the extra q() ensures that synchronous exceptions hit the same codepath as
|
||||||
// asynchronous ones.
|
// asynchronous ones.
|
||||||
|
|
Loading…
Reference in a new issue