Skip to content

Commit

Permalink
use old chromium headless mode (see #)
Browse files Browse the repository at this point in the history
default in 128 apparently moved from "performant &
lightweight" (old) to "authentic & fully featured" (new).

* https://developer.chrome.com/blog/chrome-headless-shell
* https://developer.chrome.com/docs/chromium/new-headless
  • Loading branch information
mad-pf committed Sep 2, 2024
1 parent 9c833c6 commit 82ee1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html2pdf/chrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func startChrome(ctx context.Context, prog string) (port int, process *os.Proces
return 0, nil, nil, err
}
cmd := exec.CommandContext(ctx, prog,
"--headless",
"--headless=old",
"--disable-gpu",
"--no-sandbox",
"--remote-debugging-port=0",
Expand Down

0 comments on commit 82ee1ac

Please sign in to comment.