fixed more issues with cookie popup blocking extensions

This commit is contained in:
Miodec 2023-02-05 22:32:06 +01:00
parent 41834d9c5e
commit 9c58ec2808

View file

@ -35,9 +35,15 @@ export function check(): void {
export function show(): void {
Skeleton.append(wrapperId);
if ($("#cookiePopupWrapper")[0] === undefined) {
if (
$("#cookiePopupWrapper")[0] === undefined ||
$("#cookiePopupWrapper").is(":visible") === false ||
$("#cookiePopupWrapper").outerHeight(true) === 0
) {
//removed by cookie popup blocking extension
$("#cookiePopupWrapper").addClass("hidden");
visible = false;
Skeleton.remove(wrapperId);
return;
}
if (!isPopupVisible(wrapperId)) {