Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runner/headless.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ func (b *Browser) ScreenshotWithBody(url string, timeout time.Duration, idle tim
if err != nil {
return nil, "", err
}
w, h := page.MustHandleDialog()
go func() {
w()
h(true, "")
}()
for _, header := range headers {
headerParts := strings.SplitN(header, ":", 2)
if len(headerParts) != 2 {
Expand Down
Loading