You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: allow 0 as a valid time value for poster thumbnails (#432)
Previously, passing `time = 0` (intending to fetch the first frame of the video)
was ignored because the code used a truthy check (`if (time)`). Since `0` is falsy
in JavaScript, the `time` param was not included in the request, causing Mux to
fall back to its default thumbnail time.
This commit updates the condition to check explicitly for `undefined` instead of
falsiness. As a result, `0` is now correctly passed through as a valid value,
while `undefined` continues to omit the `time` parameter.
Signed-off-by: Stefan Göllner <[email protected]>
0 commit comments