Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Aug 31, 2023
1 parent 50aa374 commit 4b36646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func Example_disable_headless_to_debug() {
Headless(false).
Devtools(true)

defer l.Cleanup() // remove launcher.FlagUserDataDir
defer l.Cleanup()

url := l.MustLaunch()

Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Flag string

// TODO: we should automatically generate all the flags here
const (
// UserDataDir flag
// UserDataDir https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md
UserDataDir Flag = "user-data-dir"

// Headless mode. Whether to run browser in headless mode. A mode without visible UI.
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func (l *Launcher) Kill() {
}
}

// Cleanup wait until the Browser exits and remove UserDataDir
// Cleanup wait until the Browser exits and remove [flags.UserDataDir]
func (l *Launcher) Cleanup() {
<-l.exit

Expand Down

0 comments on commit 4b36646

Please sign in to comment.