Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(screenshots): fix getParsedImage of null #4189

Merged
merged 1 commit into from
Jan 9, 2018
Merged

Conversation

patrickhulce
Copy link
Collaborator

@@ -78,9 +78,12 @@ class ScreenshotThumbnails extends Audit {
]).then(([speedline, ttfi, ttci]) => {
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