mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
add support for other Nexus devices as "mobile"
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
module MobileDetection
|
||||
def self.mobile_device?(user_agent)
|
||||
user_agent =~ /Mobile|webOS|Nexus 7/ && !(user_agent =~ /iPad/)
|
||||
user_agent =~ /Mobile|webOS|Nexus (5|6|7)/ && !(user_agent =~ /iPad/)
|
||||
end
|
||||
|
||||
# we need this as a reusable chunk that is called from the cache
|
||||
|
Reference in New Issue
Block a user