1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Set loading: false when iFrame finishes loading

This commit is contained in:
Luke Barnard
2018-05-14 11:42:38 +01:00
parent 6345e474f5
commit cf8077e605

View File

@@ -359,6 +359,7 @@ export default class AppTile extends React.Component {
if (!this.widgetMessaging) { if (!this.widgetMessaging) {
this._onInitialLoad(); this._onInitialLoad();
} }
this.setState({loading: false});
} }
/** /**
@@ -396,8 +397,6 @@ export default class AppTile extends React.Component {
}).catch((err) => { }).catch((err) => {
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err); console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
}); });
this.setState({loading: false});
} }
_onWidgetAction(payload) { _onWidgetAction(payload) {