1
0
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:
Kyle Spearrin 2017-11-20 13:21:14 -05:00
parent 17edd87ed9
commit 3f0fcd4e52

View File

@ -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);
}