mirror of https://github.com/vector-im/riot-web
Explicitly set initialisation state.
parent
da8b1ff1cd
commit
98ac3dd19b
|
@ -128,6 +128,8 @@ export default React.createClass({
|
|||
* Component initialisation is only complete when this function has resolved
|
||||
*/
|
||||
setScalarToken() {
|
||||
this.setState({initialising: true});
|
||||
|
||||
if (!this.isScalarUrl(this.props.url)) {
|
||||
console.warn('Non-scalar widget, not setting scalar token!', url);
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in New Issue