Reputation: 63
I'm able to detect chrome browser other than safari with
user_agent = request.env['HTTP_USER_AGENT'].downcase
user_agent.include?("crios")
But, how to detect other browsers like Dolphin
Dolphin browser user_agent also showing same as Safari. Is there any other way to detect browsers.
Upvotes: 0
Views: 160
Reputation: 9787
Why do you want to do this? It's usually not a good idea.
Feature detection is usually a much better way to go. See this answer for a good explanation.
Upvotes: 1