From 6fea94eb03901566dd19cc1285ce44d60879ead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Mon, 7 Dec 2015 21:19:36 +0100 Subject: [PATCH] removed frame from iframe --- src/load-menu-for-web-testing.js | 2 ++ src/plugin-specific/add-iframe-to-page.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/load-menu-for-web-testing.js b/src/load-menu-for-web-testing.js index 82d732c..c4d0593 100644 --- a/src/load-menu-for-web-testing.js +++ b/src/load-menu-for-web-testing.js @@ -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('
'); $('.tagit-body').before(iframe); diff --git a/src/plugin-specific/add-iframe-to-page.js b/src/plugin-specific/add-iframe-to-page.js index 295d821..214c58a 100644 --- a/src/plugin-specific/add-iframe-to-page.js +++ b/src/plugin-specific/add-iframe-to-page.js @@ -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('
');