You've already forked matrix-react-sdk
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user