From f0224460d2e0885dbf6124fc630066cbd90189c9 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 1 Aug 2017 17:48:02 +0100 Subject: [PATCH] Fix comparison and handle case where app has permission to load but content is mixed protocol. --- src/components/views/elements/AppTile.js | 38 +++++++++++++----------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 1119cf0387..2aebc217f5 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -209,24 +209,26 @@ export default React.createClass({ ); } else if (this.state.hasPermissionToLoad == true) { - appTileBody = ( -
- -
- ); - } else if (this.isMixedContent()) { - appTileBody = ( -
- -
- ); + if (this.isMixedContent()) { + appTileBody = ( +
+ +
+ ); + } else { + appTileBody = ( +
+ +
+ ); + } } else { appTileBody = (