You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
@@ -20,4 +20,9 @@ limitations under the License.
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 450px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,14 +121,11 @@ export default class ModalWidgetDialog extends React.PureComponent<IProps, IStat
|
||||
className="mx_ModalWidgetDialog"
|
||||
contentId="mx_Dialog_content"
|
||||
onFinished={this.props.onFinished}
|
||||
hasCancel={false}
|
||||
>
|
||||
<div>
|
||||
<iframe
|
||||
ref={this.appFrame}
|
||||
// sandbox="allow-forms allow-scripts"
|
||||
width={700} // TODO
|
||||
height={450} // TODO
|
||||
// sandbox="allow-forms allow-scripts" TODO
|
||||
src={widgetUrl.toString()}
|
||||
onLoad={this.onLoad}
|
||||
/>
|
||||
|
||||
@@ -147,7 +147,7 @@ export class WidgetApi extends EventEmitter {
|
||||
this.replyToRequest(<ToWidgetRequest>payload, {});
|
||||
break;
|
||||
|
||||
// Ack, handle by caller
|
||||
// Ack, handled by caller
|
||||
case KnownWidgetActions.Terminate:
|
||||
case KnownWidgetActions.ButtonClicked:
|
||||
case KnownWidgetActions.GetWidgetConfig:
|
||||
|
||||
Reference in New Issue
Block a user