mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
field icon and open popup
This commit is contained in:
@@ -23,12 +23,16 @@
|
||||
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.src = chrome.extension.getURL('overlay/popup.html');
|
||||
iframe.style.cssText = 'height: 200px; width: 250px; border: 2px solid #000;; position: absolute; visibility: visible; left: ' + left + '; top: ' + top + '; z-index: 999999999;';
|
||||
iframe.style.cssText = 'height: 200px; width: 250px; border: 2px solid #000;; position: absolute; visibility: visible;' +
|
||||
'left: ' + left + 'px; top: ' + top + 'px; z-index: 999999999;';
|
||||
iframe.id = 'bit-overlay-popup';
|
||||
document.body.insertBefore(iframe, document.body.lastChild);
|
||||
}
|
||||
|
||||
function closePopup() {
|
||||
document.getElementById('bit-overlay-popup').remove();
|
||||
var el = document.getElementById('bit-overlay-popup');
|
||||
if (el) {
|
||||
el.parentElement.removeChild(el);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user