Skip to content

Commit

Permalink
fix: chrome params functional opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Davincible committed Dec 6, 2022
1 parent 795317a commit 6344b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func WithLogLevel(level int) Option {
}

// WithChromeFlags add chrome flags.
func WithChromeFlags(opts []chromedp.ExecAllocatorOption) Option {
func WithChromeFlags(opts ...chromedp.ExecAllocatorOption) Option {
return func(c *Config) {
c.ChromeFlags = append(c.ChromeFlags, opts...)
}
Expand Down

0 comments on commit 6344b8e

Please sign in to comment.