From 6fff446c615ec5506876eff513bc821c001c53d4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 17 May 2022 15:51:26 +0200 Subject: [PATCH] added more checks for cookie popup blocking extensions --- frontend/src/ts/popups/cookie-popup.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/ts/popups/cookie-popup.ts b/frontend/src/ts/popups/cookie-popup.ts index 9224cc741..471355559 100644 --- a/frontend/src/ts/popups/cookie-popup.ts +++ b/frontend/src/ts/popups/cookie-popup.ts @@ -29,6 +29,14 @@ export function check(): void { } export function show(): void { + if ( + $("#cookiePopupWrapper")[0] === undefined || + $("#cookiePopupWrapper").outerHeight(true) === 0 + ) { + //removed by cookie popup blocking extension + visible = false; + return; + } if ($("#cookiePopupWrapper").hasClass("hidden")) { $("#cookiePopupWrapper") .stop(true, true)