Skip to content

Commit f474aeb

Browse files
committed
fix(three-dissolve): expose window.__hf for capture engine readiness
The engine's initializeSession polls for window.__hf = { duration, seek } to know the page is renderable. This was removed during the debug-globals cleanup — the capture engine never saw readiness, polling until the 120s CI timeout killed it, producing the HeadlessExperimental.beginFrame error. Set __hf in both the onLoad and onError GLTF callbacks, alongside the __tailwindReady resolution.
1 parent a687e5d commit f474aeb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

registry/blocks/three-dissolve/three-dissolve.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,13 @@
484484
);
485485
root.add(particlePoints);
486486
renderAt(lastRenderedTime);
487+
window.__hf = { duration: DURATION, seek: renderAt };
487488
resolveReady();
488489
},
489490
undefined,
490491
(error) => {
491492
console.error("GLTF load failed:", error);
493+
window.__hf = { duration: DURATION, seek: renderAt };
492494
resolveReady();
493495
},
494496
);

0 commit comments

Comments
 (0)