1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-18 11:05:41 +01:00

use iframe contentWindow.location instead src

This commit is contained in:
Kyle Spearrin 2018-04-13 10:20:12 -04:00
parent c895ec386e
commit 46dabd5d8a

View File

@ -389,7 +389,6 @@ document.addEventListener('DOMContentLoaded', function (event) {
var barPageUrl = isSafari ? (safari.extension.baseURI + barPage) : chrome.extension.getURL(barPage);
var iframe = document.createElement('iframe');
iframe.src = barPageUrl;
iframe.style.cssText = 'height: 42px; width: 100%; border: 0;';
iframe.id = 'bit-notification-bar-iframe';
@ -399,6 +398,8 @@ document.addEventListener('DOMContentLoaded', function (event) {
frameDiv.appendChild(iframe);
document.body.appendChild(frameDiv);
iframe.contentWindow.location = barPageUrl;
var spacer = document.createElement('div');
spacer.id = 'bit-notification-bar-spacer';
spacer.style.cssText = 'height: 42px;';