Skip to content

Commit

Permalink
Bot UA can also be a mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
metalwolf authored Aug 3, 2020
1 parent 8020c8d commit a647df1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (u *UserAgent) evalBrowserName(ua string) bool {
// Blackberry goes first because it reads as MSIE & Safari
if strings.Contains(ua, "blackberry") || strings.Contains(ua, "playbook") || strings.Contains(ua, "bb10") || strings.Contains(ua, "rim ") {
u.Browser.Name = BrowserBlackberry
return u.maybeBot()
return u.maybeBot(ua)
}

if strings.Contains(ua, "applewebkit") {
Expand Down Expand Up @@ -92,7 +92,7 @@ func (u *UserAgent) evalBrowserName(ua string) bool {
goto notwebkit

}
return u.maybeBot()
return u.maybeBot(ua)
}

notwebkit:
Expand Down Expand Up @@ -159,7 +159,7 @@ notwebkit:

}

return u.maybeBot()
return u.maybeBot(ua)
}

// Retrieve browser version
Expand Down

0 comments on commit a647df1

Please sign in to comment.