mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 07:17:23 +08:00
fixed cookie popup blocking extensions causing weird behaviour
This commit is contained in:
parent
4166003f21
commit
b05535a381
1 changed files with 4 additions and 1 deletions
|
|
@ -40,7 +40,10 @@ export function show(): void {
|
|||
.css("opacity", 0)
|
||||
.removeClass("hidden")
|
||||
.animate({ opacity: 1 }, 100, () => {
|
||||
if ($("#cookiePopupWrapper").outerHeight(true) === 0) {
|
||||
if (
|
||||
$("#cookiePopupWrapper").is(":visible") === false ||
|
||||
$("#cookiePopupWrapper").outerHeight(true) === 0
|
||||
) {
|
||||
visible = false;
|
||||
} else {
|
||||
visible = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue