mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #716 from matrix-org/luke/feature-default-hs
Allow setting the default HS from the query parameter
This commit is contained in:
commit
995e59b973
1 changed files with 9 additions and 0 deletions
|
@ -226,6 +226,15 @@ module.exports = React.createClass({
|
||||||
if (this._teamToken) {
|
if (this._teamToken) {
|
||||||
console.info(`Team token set to ${this._teamToken}`);
|
console.info(`Team token set to ${this._teamToken}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set a default HS with query param `hs_url`
|
||||||
|
const paramHs = this.props.startingFragmentQueryParams.hs_url;
|
||||||
|
if (paramHs) {
|
||||||
|
console.log('Setting register_hs_url ', paramHs);
|
||||||
|
this.setState({
|
||||||
|
register_hs_url: paramHs,
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
|
|
Loading…
Reference in a new issue