minor refactoring of @tbflw work

This commit is contained in:
Julien Neuhart
2019-06-21 13:32:46 +02:00
parent 97eff7f21d
commit 8ca9866440
10 changed files with 33 additions and 34 deletions

View File

@@ -7,15 +7,13 @@ import (
"github.com/mafredri/cdp/devtool"
)
const (
warmupTime = 10 * time.Second
)
const warmupTime = 10 * time.Second
type chrome struct {
manager *processManager
}
// NewChrome retruns a Google Chrome
// NewChrome returns a Google Chrome
// headless process.
func NewChrome(debug bool) Process {
return &chrome{