mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
checking if element is visible
This commit is contained in:
parent
ffd3a96477
commit
a98d658fe9
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ function getUnits(): unknown {
|
|||
|
||||
if (
|
||||
element &&
|
||||
window.getComputedStyle(element).display !== "none"
|
||||
window.getComputedStyle(element).display !== "none" &&
|
||||
element.offsetParent !== null
|
||||
// && (!isSky || (isSky && showSky))
|
||||
) {
|
||||
toReturn.push(unit);
|
||||
|
|
Loading…
Reference in a new issue