From 9c58ec2808c465fc519d0e364fae8a97168b7017 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 5 Feb 2023 22:32:06 +0100 Subject: [PATCH] fixed more issues with cookie popup blocking extensions --- frontend/src/ts/popups/cookie-popup.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/popups/cookie-popup.ts b/frontend/src/ts/popups/cookie-popup.ts index 0ab938d8f..d2e214b78 100644 --- a/frontend/src/ts/popups/cookie-popup.ts +++ b/frontend/src/ts/popups/cookie-popup.ts @@ -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)) {