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