1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Merge pull request #4591 from matrix-org/dbkr/fix_persistent_widgets_desktop

Fix persistent widgets on desktop / http
This commit is contained in:
David Baker
2020-05-13 12:47:54 +01:00
committed by GitHub

View File

@@ -430,7 +430,7 @@ export default class AppTile extends React.Component {
// is used for is to determine the origin we're talking to, and therefore we don't need the // is used for is to determine the origin we're talking to, and therefore we don't need the
// fully templated URL. // fully templated URL.
const widgetMessaging = new WidgetMessaging( const widgetMessaging = new WidgetMessaging(
this.props.app.id, this.props.app.url, this.props.userWidget, this._appFrame.current.contentWindow); this.props.app.id, this._getRenderedUrl(), this.props.userWidget, this._appFrame.current.contentWindow);
ActiveWidgetStore.setWidgetMessaging(this.props.app.id, widgetMessaging); ActiveWidgetStore.setWidgetMessaging(this.props.app.id, widgetMessaging);
widgetMessaging.getCapabilities().then((requestedCapabilities) => { widgetMessaging.getCapabilities().then((requestedCapabilities) => {
console.log(`Widget ${this.props.app.id} requested capabilities: ` + requestedCapabilities); console.log(`Widget ${this.props.app.id} requested capabilities: ` + requestedCapabilities);