mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
disable iframe sandboxing. Remove BBC news iframe
This commit is contained in:
parent
b111579aed
commit
ec03cf4de3
@ -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>
|
||||
);
|
||||
|
@ -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",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user