removed frame from iframe
This commit is contained in:
parent
26544f9b39
commit
6fea94eb03
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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" />');
|
||||
|
|
Loading…
Reference in a new issue