mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-26 18:09:40 +08:00
fixed cookie popup not showing up
This commit is contained in:
parent
1bc8c395ed
commit
bde38219a5
1 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue