radically simplify our mobile user agent detection
This commit is contained in:
parent
1b4b361841
commit
ac6d38ab34
|
@ -1,6 +1,6 @@
|
|||
module MobileDetection
|
||||
def self.mobile_device?(user_agent)
|
||||
user_agent =~ /Mobile|Android|webOS/ && !(user_agent =~ /iPad|Nexus (9|10)/)
|
||||
user_agent =~ /Mobile/ && !(user_agent =~ /iPad/)
|
||||
end
|
||||
|
||||
# we need this as a reusable chunk that is called from the cache
|
||||
|
|
Loading…
Reference in New Issue