Files
hyperframes/packages
Miguel Ángel d176d5736b fix(core): guard getTimeline() calls against missing time/duration methods
The captured GSAP timeline can temporarily be an object that lacks
.time() or .duration() methods (e.g. during init or when a non-GSAP
adapter is driving animation). Optional chaining only guards against
null/undefined, not against a truthy object missing the method.

Add safeTimelineTime/safeTimelineDuration helpers that check
typeof before calling, matching the defensive pattern already used
by getTimelineDurationSeconds in init.ts. Apply them to every
bare .time()/.duration() call in the player: getTime, getDuration,
play (duration + time reads), and pause (time read).

Fixes PRINFRA-175 (~29 unhandled errors/month).
2026-05-21 17:18:01 -04:00
..
2026-05-21 12:22:12 -04:00
2026-05-21 12:22:12 -04:00
2026-05-21 12:22:12 -04:00