You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
Fix comparison and handle case where app has permission to load but content is mixed protocol.
This commit is contained in:
@@ -209,24 +209,26 @@ export default React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (this.state.hasPermissionToLoad == true) {
|
} else if (this.state.hasPermissionToLoad == true) {
|
||||||
appTileBody = (
|
if (this.isMixedContent()) {
|
||||||
<div className="mx_AppTileBody">
|
appTileBody = (
|
||||||
<iframe
|
<div className="mx_AppTileBody">
|
||||||
ref="appFrame"
|
<AppWarning
|
||||||
src={safeWidgetUrl}
|
errorMsg="Error - Mixed content"
|
||||||
allowFullScreen="true"
|
/>
|
||||||
sandbox={sandboxFlags}
|
</div>
|
||||||
></iframe>
|
);
|
||||||
</div>
|
} else {
|
||||||
);
|
appTileBody = (
|
||||||
} else if (this.isMixedContent()) {
|
<div className="mx_AppTileBody">
|
||||||
appTileBody = (
|
<iframe
|
||||||
<div className="mx_AppTileBody">
|
ref="appFrame"
|
||||||
<AppWarning
|
src={safeWidgetUrl}
|
||||||
errorMsg="Error - Mixed content"
|
allowFullScreen="true"
|
||||||
/>
|
sandbox={sandboxFlags}
|
||||||
</div>
|
></iframe>
|
||||||
);
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
appTileBody = (
|
appTileBody = (
|
||||||
<div className="mx_AppTileBody">
|
<div className="mx_AppTileBody">
|
||||||
|
|||||||
Reference in New Issue
Block a user