Skip to content

Commit 9c58ec2

Browse files
committed
fixed more issues with cookie popup blocking extensions
1 parent 41834d9 commit 9c58ec2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/ts/popups/cookie-popup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ export function check(): void {
3535

3636
export function show(): void {
3737
Skeleton.append(wrapperId);
38-
if ($("#cookiePopupWrapper")[0] === undefined) {
38+
if (
39+
$("#cookiePopupWrapper")[0] === undefined ||
40+
$("#cookiePopupWrapper").is(":visible") === false ||
41+
$("#cookiePopupWrapper").outerHeight(true) === 0
42+
) {
3943
//removed by cookie popup blocking extension
44+
$("#cookiePopupWrapper").addClass("hidden");
4045
visible = false;
46+
Skeleton.remove(wrapperId);
4147
return;
4248
}
4349
if (!isPopupVisible(wrapperId)) {

0 commit comments

Comments
 (0)