removed frame from iframe

This commit is contained in:
Nils Norman Haukås 2015-12-07 21:19:36 +01:00
parent 26544f9b39
commit 6fea94eb03
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,8 @@ function injectIframe () {
console.log('injectIframe()');
var iframe = document.createElement('iframe');
iframe.src = 'index-angular-app-web.html';
iframe.seamless = 'seamless';
iframe.frameBorder = "0";
iframe.className = 'tagit-iframe';
$('body').children().wrapAll('<div id="tagit-body" class="tagit-body" />');
$('.tagit-body').before(iframe);

View file

@ -2,6 +2,8 @@ $.get(chrome.extension.getURL('index-angular-app.html'), function (htmlData) {
var iframe = document.createElement('iframe');
iframe.id = 'tagit-iframe';
iframe.srcdoc = htmlData;
iframe.seamless = 'seamless';
iframe.frameBorder = "0";
iframe.className = 'tagit-iframe';
iframe.sandbox = 'allow-same-origin allow-top-navigation allow-scripts';
$('body').children().wrapAll('<div id="tagit-body" class="tagit-body" />');