From c4d983370789a1add063d59fddbe4ca710bfe76e Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Sun, 6 Nov 2022 01:38:31 -0800 Subject: [PATCH] add todo --- wrp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrp.go b/wrp.go index 6301c50..355d464 100644 --- a/wrp.go +++ b/wrp.go @@ -266,7 +266,7 @@ func (rq *wrpReq) capture() { } chromedp.Run( ctx, emulation.SetDeviceMetricsOverride(int64(float64(rq.width)/rq.zoom), height, rq.zoom, false), - chromedp.Sleep(time.Second*2), + chromedp.Sleep(time.Second*2), // TODO(tenox): totally lame, find a better way to determine if page is rendered ) // Capture screenshot... err = chromedp.Run(ctx, chromedpCaptureScreenshot(&pngcap, rq.height))