Added missing Proxy PAC URL command line option
This commit is contained in:
parent
e12e5d1f15
commit
dc08ecc727
|
@ -13,6 +13,8 @@ import (
|
|||
"sync"
|
||||
"syscall"
|
||||
|
||||
"net/url"
|
||||
|
||||
"github.com/knq/chromedp/client"
|
||||
)
|
||||
|
||||
|
@ -379,6 +381,11 @@ func Proxy(proxy string) CommandLineOption {
|
|||
return Flag("proxy-server", proxy)
|
||||
}
|
||||
|
||||
// ProxyPacURL is the Chrome command line option to set the URL of a proxy PAC file.
|
||||
func ProxyPacURL(pacURL url.URL) CommandLineOption {
|
||||
return Flag("proxy-pac-url", pacURL.String())
|
||||
}
|
||||
|
||||
// WindowSize is the Chrome command line option to set the initial window size.
|
||||
func WindowSize(width, height int) CommandLineOption {
|
||||
return Flag("window-size", fmt.Sprintf("%d,%d", width, height))
|
||||
|
|
Loading…
Reference in New Issue
Block a user