This commit is contained in:
Shuchang Zheng
2025-04-28 16:34:25 +08:00
committed by GitHub
parent a8d237deee
commit d798b00409

View File

@@ -2322,10 +2322,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
case "style": {
// TODO: need to confirm that elemnent is hidden previously
if (tagName === "body") continue;
if (
(getElementComputedStyle(node)?.display !== "none") !==
"none"
) {
if (getElementComputedStyle(node)?.display !== "none") {
window.globalOneTimeIncrementElements.push({
targetNode: node,
newNodes: [node],
@@ -2351,10 +2348,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
)
)
continue;
if (
(getElementComputedStyle(node)?.display !== "none") !==
"none"
) {
if (getElementComputedStyle(node)?.display !== "none") {
window.globalOneTimeIncrementElements.push({
targetNode: node,
newNodes: [node],