mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
switch mobile detection to look for "Android"
This commit is contained in:
@ -37,7 +37,7 @@ class LogAnalyzer
|
||||
end
|
||||
|
||||
def is_mobile?
|
||||
user_agent =~ /Mobile|webOS|Nexus (5|6|7)/ && !(user_agent =~ /iPad/)
|
||||
user_agent =~ /Mobile|Android|webOS/ && !(user_agent =~ /iPad|Nexus (7|10)/)
|
||||
end
|
||||
|
||||
def parsed_time
|
||||
|
Reference in New Issue
Block a user