Skip to content

Commit

Permalink
Merge pull request #3 from lastzero/patch-1
Browse files Browse the repository at this point in the history
Chromium: Take screenshot when body is ready
  • Loading branch information
micheleriva authored Dec 30, 2021
2 parents d429101 + d3cc1b5 commit 7caeb69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chromium/chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func takeScreenshot(res *[]byte, html string, width float64, height float64) chr
return nil

}),
chromedp.WaitReady("body"),
chromedp.ActionFunc(func(ctx context.Context) error {

_, _, contentSize, err := page.GetLayoutMetrics().Do(ctx)
Expand Down

0 comments on commit 7caeb69

Please sign in to comment.