mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
fix cross-origin permission issue in notif. bar
This commit is contained in:
@@ -5,8 +5,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
setTimeout(load, 50);
|
||||
|
||||
function load() {
|
||||
var content = document.getElementById('content'),
|
||||
closeButton = document.getElementById('close-button'),
|
||||
var closeButton = document.getElementById('close-button'),
|
||||
body = document.querySelector('body'),
|
||||
bodyRect = body.getBoundingClientRect();
|
||||
|
||||
@@ -82,6 +81,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
|
||||
function setContent(element) {
|
||||
const content = document.getElementById('content');
|
||||
while (content.firstChild) {
|
||||
content.removeChild(content.firstChild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user