disable iframe sandboxing. Remove BBC news iframe

This commit is contained in:
Richard Lewis 2017-05-30 10:46:51 +01:00
parent b111579aed
commit ec03cf4de3
2 changed files with 26 additions and 13 deletions

View file

@ -64,7 +64,8 @@ export default React.createClass({
</span>
</div>
<div className="mx_AppTileBody">
<iframe sandbox="sandbox" seamless="seamless" src={this.props.url}></iframe>
{/* <iframe sandbox="sandbox" seamless="seamless" src={this.props.url}></iframe> */}
<iframe seamless="seamless" src={this.props.url}></iframe>
</div>
</div>
);

View file

@ -28,22 +28,34 @@ module.exports = React.createClass({
},
componentDidMount: function() {
const as = this.state.apps;
as.push({
id: "bbcApp",
url: "http://news.bbc.co.uk",
name: "BBC News",
});
this.setState({apps: as});
// const as = this.state.apps;
// as.push({
// id: "bbcApp",
// url: "http://news.bbc.co.uk",
// name: "BBC News",
// });
// this.setState({apps: as});
},
getInitialState: function() {
return {
apps: [{
id: "riot-bot",
url: "https://matrix.org/_matrix/media/v1/thumbnail/matrix.org/LvHiqFMHWxAjFUMVCvaPbRYs?width=150&height=150",
name: "Riot-bot",
}],
apps: [
// {
// id: "riot-bot",
// url: "https://matrix.org/_matrix/media/v1/thumbnail/matrix.org/LvHiqFMHWxAjFUMVCvaPbRYs?width=150&height=150",
// name: "Riot-bot",
// },
{
id: "youtube",
url: "https://www.youtube.com/embed/ZJy1ajvMU1k?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&playsinline=1",
name: "Live stream - Boeuf Bourguignon",
},
{
id: "recipie",
url: "https://www.bbcgoodfood.com/recipes/5032/beef-bourguignon",
name: "Ingredients - Boeuf Bourguignon",
},
],
};
},