From 65042fa78bcd60b4432534b9eddaec9e5600095a Mon Sep 17 00:00:00 2001 From: Alexander Pikeev Date: Sun, 27 Oct 2024 22:53:36 +0300 Subject: [PATCH] fix: update cookies comment --- chromium.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chromium.go b/chromium.go index bbecd8b..290df49 100644 --- a/chromium.go +++ b/chromium.go @@ -41,7 +41,7 @@ func (req *chromiumRequest) EmulateScreenMediaType() { req.fields[fieldChromiumEmulatedMediaType] = "screen" } -// Cookies to store in the Chromium cookie jar (JSON format). +// Cookies to store in the Chromium cookie jar (JSON array format). func (req *chromiumRequest) Cookies(cookies []byte) { req.fields[fieldChromiumCookies] = string(cookies) } @@ -157,8 +157,6 @@ func (req *chromiumRequest) Metadata(jsonData []byte) { req.fields[fieldMetadata] = string(jsonData) } -// TODO: move the methods for screenshot requests to a separate file (mb the separate request). - // ScreenshotWidth Width sets the device screen width in pixels. func (req *chromiumRequest) ScreenshotWidth(width float64) { req.fields[fieldScreenshotWidth] = fmt.Sprintf("%f", width)