fixed cookie popup not showing up

This commit is contained in:
Miodec 2022-05-23 13:37:45 +02:00
parent 1bc8c395ed
commit bde38219a5

View file

@ -29,10 +29,7 @@ export function check(): void {
}
export function show(): void {
if (
$("#cookiePopupWrapper")[0] === undefined ||
$("#cookiePopupWrapper").outerHeight(true) === 0
) {
if ($("#cookiePopupWrapper")[0] === undefined) {
//removed by cookie popup blocking extension
visible = false;
return;
@ -43,7 +40,11 @@ export function show(): void {
.css("opacity", 0)
.removeClass("hidden")
.animate({ opacity: 1 }, 100, () => {
visible = true;
if ($("#cookiePopupWrapper").outerHeight(true) === 0) {
visible = false;
} else {
visible = true;
}
});
}
}