mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 07:44:01 +08:00
added more checks for cookie popup blocking extensions
This commit is contained in:
parent
dc10abdb8c
commit
6fff446c61
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue