init code
This commit is contained in:
parent
412120689c
commit
8fe277be6f
|
@ -17,6 +17,7 @@ type Core struct {
|
|||
pw *playwright.Playwright
|
||||
browser playwright.Browser
|
||||
context playwright.BrowserContext
|
||||
ShowBrowser bool
|
||||
}
|
||||
|
||||
type cookie struct {
|
||||
|
@ -62,7 +63,7 @@ func (c *Core) Init() {
|
|||
HandleSIGHUP: nil,
|
||||
HandleSIGINT: nil,
|
||||
HandleSIGTERM: nil,
|
||||
Headless: playwright.Bool(false),
|
||||
Headless: playwright.Bool(c.ShowBrowser),
|
||||
Proxy: nil,
|
||||
SlowMo: nil,
|
||||
Timeout: nil,
|
||||
|
|
Loading…
Reference in New Issue