Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
habedi committed Jan 17, 2025
1 parent 7fabccc commit 1f35adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func isTokenValid(user *db.User) bool {
func createChromeContext(headless bool) (context.Context, context.CancelFunc) {
// Check if Google Chrome or Chromium is available in the path
var execPath string
if path, err := exec.LookPath("google-chrome"); err == nil {
if path, err := exec.LookPath("chromium"); err == nil {
execPath = path
} else if path, err := exec.LookPath("chromium"); err == nil {
} else if path, err := exec.LookPath("google-chrome"); err == nil {
execPath = path
} else if path, err := exec.LookPath("chrome"); err == nil {
execPath = path
Expand Down

0 comments on commit 1f35adc

Please sign in to comment.