mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 09:14:27 +08:00
fixed more issues with cookie popup blocking extensions
This commit is contained in:
parent
41834d9c5e
commit
9c58ec2808
1 changed files with 7 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue