mirror of https://github.com/vector-im/riot-web
Merge pull request #2083 from matrix-org/t3chguy/is_url
allow passing initial is_url like hs_url in query paramspull/21833/head
commit
5765d59132
|
@ -286,6 +286,14 @@ export default React.createClass({
|
||||||
register_hs_url: paramHs,
|
register_hs_url: paramHs,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Set a default IS with query param `is_url`
|
||||||
|
const paramIs = this.props.startingFragmentQueryParams.is_url;
|
||||||
|
if (paramIs) {
|
||||||
|
console.log('Setting register_is_url ', paramIs);
|
||||||
|
this.setState({
|
||||||
|
register_is_url: paramIs,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// a thing to call showScreen with once login completes. this is kept
|
// a thing to call showScreen with once login completes. this is kept
|
||||||
// outside this.state because updating it should never trigger a
|
// outside this.state because updating it should never trigger a
|
||||||
|
|
Loading…
Reference in New Issue