Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- tagName: 'iframe',
- attributeBindings: ['sandbox','src'],
- src: Ember.computed(function(){
- return '';
- }),
- sandbox: 'allow-scripts allow-same-origin allow-popups allow-top-navigation allow-forms',
- didRender() {
- const doc = this.$()[0].contentDocument || this.$()[0].contentWindow.document;
- doc.body.innerHTML = '<div>kek</div>';
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement