fixed cookie popup blocking extensions causing weird behaviour

This commit is contained in:
Miodec 2022-05-24 18:02:55 +02:00
parent 4166003f21
commit b05535a381

View file

@ -40,7 +40,10 @@ export function show(): void {
.css("opacity", 0)
.removeClass("hidden")
.animate({ opacity: 1 }, 100, () => {
if ($("#cookiePopupWrapper").outerHeight(true) === 0) {
if (
$("#cookiePopupWrapper").is(":visible") === false ||
$("#cookiePopupWrapper").outerHeight(true) === 0
) {
visible = false;
} else {
visible = true;