Skip to content

Fix Edge browser detection in visit stats#1007

Open
bonsaiborn wants to merge 1 commit into
thedevs-network:mainfrom
bonsaiborn:patch-1
Open

Fix Edge browser detection in visit stats#1007
bonsaiborn wants to merge 1 commit into
thedevs-network:mainfrom
bonsaiborn:patch-1

Conversation

@bonsaiborn
Copy link
Copy Markdown

Summary

This PR fixes browser detection in visit stats by checking Edge and Opera user agents before Chrome.

Previously, Chromium-based browsers such as Microsoft Edge could be detected as Chrome because their user agent includes the Chrome token. The detection order now handles Edge and Opera first, while Chrome, Safari, IE, and Other remain separate categories.

Scope

  • Updated browser detection logic in server/queues/visit.js
  • No database schema changes
  • No stats aggregation changes

This fixes browser detection in visit stats by checking Edge and Opera user agents before Chrome.

No database schema changes or stats aggregation changes were made. This is limited to browser detection logic in server/queues/visit.js.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant