Skip to content

core(screenshots): fix getParsedImage of null#4189

Merged
paulirish merged 1 commit intomasterfrom
side_co_fixes
Jan 9, 2018
Merged

core(screenshots): fix getParsedImage of null#4189
paulirish merged 1 commit intomasterfrom
side_co_fixes

Conversation

@patrickhulce
Copy link
Collaborator

const thumbnails = [];
const analyzedFrames = speedline.frames.filter(frame => !frame.isProgressInterpolated());
const maxFrameTime =
speedline.complete ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like we could just ALSO put speedline.complete in the L86 math.max(), yeah?

semantically maxFrameTime is the second half of this, but not realllly .complete.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because NaN. I see.

@paulirish paulirish merged commit 22a6b3d into master Jan 9, 2018
@paulirish paulirish deleted the side_co_fixes branch January 9, 2018 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read property 'getParsedImage' of null

3 participants