Fix comparison and handle case where app has permission to load but content is mixed protocol.
parent
d29610bdd2
commit
f0224460d2
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue