Skip to content

Commit

Permalink
target
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuanbin committed Apr 2, 2020
1 parent 23023e0 commit 2c3826c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions printer/chrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func (p chromePrinter) Print(destination string) error {
createTargetArgs := target.
NewCreateTargetArgs("about:blank").
SetBrowserContextID(newContextTarget.BrowserContextID)

createTargetArgs.Height = &p.devArgs.Height
createTargetArgs.Width = &p.devArgs.Width

newTarget, err := devtClient.Target.CreateTarget(ctx, createTargetArgs)
if err != nil {
return err
Expand Down

0 comments on commit 2c3826c

Please sign in to comment.