Skip to content

Commit

Permalink
fix: update cookies comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pikeev committed Oct 27, 2024
1 parent 0c5b558 commit 65042fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 65042fa

Please sign in to comment.