mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01:00
fix cross-origin permission issue in notif. bar
This commit is contained in:
parent
17edd87ed9
commit
3f0fcd4e52
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user