mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
merge master
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/ && !(user_agent =~ /iPad/)
|
||||
end
|
||||
|
||||
# we need this as a reusable chunk that is called from the cache
|
||||
|
Reference in New Issue
Block a user