Skip to content

Commit

Permalink
Add flag to reduce resouces consume
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver authored Feb 14, 2024
1 parent ed9208c commit b8da462
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions screenshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func Screenshot[T As](ctx context.Context, input *url.URL, options ...Screenshot
chromedp.DefaultExecAllocatorOptions[:],
// chromedp.CombinedOutput(log.Writer()),
chromedp.NoDefaultBrowserCheck,
chromedp.Flag("use-gl", "angle"),
chromedp.Flag("use-angle", "swiftshader"),
chromedp.Flag("ignore-certificate-errors", true),
chromedp.Flag("allow-running-insecure-content", true),
chromedp.Flag("no-default-browser-check", true),
Expand Down

0 comments on commit b8da462

Please sign in to comment.