Skip to content

Commit

Permalink
Add Chromium support for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
svkirillov committed Mar 1, 2024
1 parent dd970c6 commit e03e08c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/report/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ func findChrome() (string, error) {
case "windows":
chromePath = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
case "darwin":
chromePath = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
chromePath = "/Applications/Chromium.app/Contents/MacOS/Chromium"
if _, err := os.Stat(chromePath); errors.Is(err, os.ErrNotExist) {
chromePath = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
case "linux":
var err error
for _, name := range []string{"chromium-browser", "google-chrome-stable"} {
Expand Down

0 comments on commit e03e08c

Please sign in to comment.