mirror of
https://github.com/bitwarden/browser
synced 2025-01-22 17:22:56 +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);
|
setTimeout(load, 50);
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
var content = document.getElementById('content'),
|
var closeButton = document.getElementById('close-button'),
|
||||||
closeButton = document.getElementById('close-button'),
|
|
||||||
body = document.querySelector('body'),
|
body = document.querySelector('body'),
|
||||||
bodyRect = body.getBoundingClientRect();
|
bodyRect = body.getBoundingClientRect();
|
||||||
|
|
||||||
@ -82,6 +81,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setContent(element) {
|
function setContent(element) {
|
||||||
|
const content = document.getElementById('content');
|
||||||
while (content.firstChild) {
|
while (content.firstChild) {
|
||||||
content.removeChild(content.firstChild);
|
content.removeChild(content.firstChild);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user