You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Allow setting the default HS from the query parameter
Fixes https://github.com/vector-im/riot-web/issues/3207
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user