Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import Ember from 'ember';
  2. export default Ember.Component.extend({
  3. tagName: 'iframe',
  4. attributeBindings: ['sandbox','src'],
  5. src: Ember.computed(function(){
  6. return '';
  7. }),
  8. sandbox: 'allow-scripts allow-same-origin allow-popups allow-top-navigation allow-forms',
  9. didRender() {
  10. const doc = this.$()[0].contentDocument || this.$()[0].contentWindow.document;
  11. doc.body.innerHTML = '<div>kek</div>';
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement