checking if element is visible

This commit is contained in:
Miodec 2023-02-28 23:48:27 +01:00
parent ffd3a96477
commit a98d658fe9

View file

@ -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);