Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 90fae32

Browse files
committed
1 parent 0dcf209 commit 90fae32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/browser_context.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ type BrowserContext interface {
4141
//
4242
// https://datatracker.ietf.org/doc/html/rfc6265.
4343
type Cookie struct {
44-
Name string `json:"name"` // Cookie name.
45-
Value string `json:"value"` // Cookie value.
46-
Domain string `json:"domain"` // Cookie domain.
47-
Path string `json:"path"` // Cookie path.
44+
Name string `js:"name" json:"name"` // Cookie name.
45+
Value string `js:"value" json:"value"` // Cookie value.
46+
Domain string `js:"domain" json:"domain"` // Cookie domain.
47+
Path string `js:"path" json:"path"` // Cookie path.
4848
HTTPOnly bool `js:"httpOnly" json:"httpOnly"` // True if cookie is http-only.
49-
Secure bool `json:"secure"` // True if cookie is secure.
49+
Secure bool `js:"secure" json:"secure"` // True if cookie is secure.
5050
SameSite CookieSameSite `js:"sameSite" json:"sameSite"` // Cookie SameSite type.
5151
URL string `js:"url" json:"url,omitempty"` // Cookie URL.
5252
// Cookie expiration date as the number of seconds since the UNIX epoch.
53-
Expires int64 `json:"expires"`
53+
Expires int64 `js:"expires" json:"expires"`
5454
}
5555

5656
// CookieSameSite represents the cookie's 'SameSite' status.

0 commit comments

Comments
 (0)