From bde38219a5852a310709b95fc97e457895be30ee Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 23 May 2022 13:37:45 +0200 Subject: [PATCH] fixed cookie popup not showing up --- frontend/src/ts/popups/cookie-popup.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/ts/popups/cookie-popup.ts b/frontend/src/ts/popups/cookie-popup.ts index 471355559..51febc837 100644 --- a/frontend/src/ts/popups/cookie-popup.ts +++ b/frontend/src/ts/popups/cookie-popup.ts @@ -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; + } }); } }